-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-cherry.yml
More file actions
48 lines (44 loc) · 932 Bytes
/
docker-compose-cherry.yml
File metadata and controls
48 lines (44 loc) · 932 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
41
42
43
44
45
46
47
48
version: '3.4'
services:
mongodb:
image: aashreys/mongo-auth:latest
volumes:
- ./mongodb-data:/data/db
environment:
- AUTH=yes
- MONGODB_ADMIN_USER=admin
- MONGODB_ADMIN_PASS=admin
- MONGODB_APPLICATION_DATABASE=app
- MONGODB_APPLICATION_USER=app
- MONGODB_APPLICATION_PASS=app
networks:
- backend
nginx:
image: nginx:1.13.10-alpine
ports:
- "5000:80"
volumes:
- ./nginx:/etc/nginx/conf.d
depends_on:
- app
networks:
- frontend
app:
build: .
depends_on:
- mongodb
volumes:
- .:/usr/src/app
working_dir: "/usr/src/app"
restart: on-failure:5
command: python run.cherry.py
networks:
- frontend
- backend
environment:
- LANG=C.UTF-8
networks:
frontend:
driver: bridge #or overlay in swarm mode
backend:
driver: bridge #or overlay in swarm mode