-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 942 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 942 Bytes
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
version: '3.7'
services:
app:
build:
context: .
dockerfile: stages/development/Dockerfile.app
image: smlp-development
volumes:
- .:/home/pn/app:Z
network_mode: host
environment:
- APP_ENV=development
mongo:
build:
context: .
dockerfile: stages/development/Dockerfile.mongo
container_name: app_mongo
environment:
MONGO_INITDB_DATABASE: "smlp_development"
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/app_mongo_root_password
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_PASSWORD_FILE: /run/secrets/app_mongo_password
MONGO_USER: "admin"
secrets:
- app_mongo_password
- app_mongo_root_password
volumes:
- mongo:/data/db
network_mode: host
secrets:
app_mongo_password:
file: ./stages/development/mongo/password
app_mongo_root_password:
file: ./stages/development/mongo/root_password
volumes:
mongo: