-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (48 loc) · 1.01 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
58
#docker-compose.yml
version: '3.4'
services:
navicell-db:
image: mongo:4.2.9
container_name: navicell-db
restart: always
volumes:
- db:/data/db
- config-db:/data/configdb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: navicell
navicell:
build:
context: ./
dockerfile: docker/Dockerfile
target: navicell
image: navicell
container_name: navicell
ports:
- "80:80"
user: root
volumes:
- maps:/var/navicell/docroot/site/maps
depends_on:
- navicell-db
navicell-dev:
build:
context: ./
dockerfile: docker/Dockerfile
target: navicell-dev
image: navicell-dev
container_name: navicell
ports:
- "80:80"
- "8080:8080"
volumes:
- .:/var/navicell
- maps:/var/navicell/site/docroot/maps/
user: root
depends_on:
- navicell-db
volumes:
db:
config-db:
maps: