-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
45 lines (44 loc) · 1.16 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
version: "3.8"
services:
mongodb:
image: mongo:6.0.15
environment:
- PUID=1000
- PGID=1000
volumes:
- db:/data/db # Necessary volume to keep database data between restarts
ports:
- 27017:27017 # Expose port to let you connect in db for debug, dont do it in prod
restart: unless-stopped
networks:
- net_lemverse
lemverse:
build:
context: .
dockerfile: Dockerfile.dev
container_name: lemverse
restart: unless-stopped
networks:
- net_lemverse
depends_on:
- mongodb
ports:
- '3000:3000' # Expose web port to see your change
- '7010:7010' # expose peer port
volumes:
- lemverse:/var/tmp/lemverse # Necessary volume for upload tileset and keep them between restart
- ./app:/opt/src # mount local dir to allow hot reload
- ./core:/opt/src/core
environment:
ROOT_URL: ${APP_ROOT_URL:-http://localhost}
MONGO_URL: mongodb://mongodb:27017/meteor
volumes:
lemverse:
driver: local
db:
driver: local
# Custom network so all services can communicate using a FQDN
networks:
net_lemverse:
driver: bridge
name: net_lemverse