-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
57 lines (53 loc) · 1.61 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
mage-db:
image: mongo:4.4-focal
volumes:
- ./database/data:/data/db
- ./database/log:/var/log/mongodb
command: [ --logpath, /var/log/mongodb/mongodb.log ]
# Uncomment the following ports block to allow the mongo client on your
# host machine to connect to MongoDB in the Docker container.
# ports:
# - 27017:27017
networks:
- mage.net
mage-server:
depends_on: [ mage-db ]
image: "mage-server:${MAGE_VERSION:-6.2.0}"
# image: "mage-server:debug"
build:
context: ./server
# dockerfile: Dockerfile-debug
args:
MAGE_VERSION: "${MAGE_VERSION:-6.2.0}"
platform: linux/amd64
volumes:
- ./server/resources:/var/lib/mage
# Comment the ports block to disallow connections directly to the node
# server when running the mage-web-proxy below.
ports:
- 4242:4242
# Uncomment to allow debuggers to attach the Node process inside the
# container on port 14242
# - 14242:14242
networks:
- mage.net
environment:
MAGE_MONGO_URL: mongodb://mage-db:27017/magedb
MAGE_TOKEN_EXPIRATION: "28800"
# Uncomment the following block to enable the TLS reverse proxy. You will
# also need to generate the key and certificate as the README describes.
# mage-web-proxy:
# image: nginx
# volumes:
# - ./web/nginx.conf:/etc/nginx/nginx.conf
# - ./web/mage-web.crt:/etc/nginx/ssl/web.crt
# - ./web/mage-web.key:/etc/nginx/ssl/web.key
# ports:
# - 4280:80
# - 4243:4243
# networks:
# - mage.net
networks:
mage.net:
driver: bridge