-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.98 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.98 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
flask:
build:
context: flask-api
dockerfile: Dockerfile-backend
container_name: flask
restart: unless-stopped
environment:
APP_ENV: "prod"
APP_DEBUG: "False"
APP_PORT: 8081
MONGODB_DATABASE: flaskdb
MONGODB_USERNAME: flaskuser
MONGODB_PASSWORD: my_mongo_password_524
MONGODB_HOSTNAME: mongodb
ports:
- "8081:8081"
volumes:
# - flask-api:/var/www/app/app
- /home/ec2-user/AttEx/flask-api:/var/www/app/app
depends_on:
- mongodb
networks:
- frontend
- backend
mongodb:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
command: mongod --auth
environment:
MONGO_INITDB_ROOT_USERNAME: mongodbuser
MONGO_INITDB_ROOT_PASSWORD: my_mongo_password_524
MONGO_INITDB_DATABASE: flaskdb
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
ports:
- "27017:27017"
volumes:
- ./mongodb:/data/db
networks:
- backend
webserver:
image: nginx-react:latest
build:
context: react-app
dockerfile: Dockerfile
container_name: webserver
restart: unless-stopped
environment:
APP_ENV: "prod"
APP_NAME: "webserver"
APP_DEBUG: "true"
SERVICE_NAME: "webserver"
ports:
- "80:80"
- "443:443"
volumes:
- ./react-app/test.conf:/etc/nginx/conf.d/default.conf
# - ./react-app/production.conf:/etc/nginx/conf.d/default.conf
# - ./react-app/dh-param/dhparam-2048.pem:/etc/ssl/certs/dhparam-2048.pem
# - /docker-volumes/etc/letsencrypt/live/www.expert-annotation.com/fullchain.pem:/etc/letsencrypt/live/www.expert-annotation.com/fullchain.pem
# - /docker-volumes/etc/letsencrypt/live/www.expert-annotation.com/privkey.pem:/etc/letsencrypt/live/www.expert-annotation.com/privkey.pem
depends_on:
- flask
networks:
- frontend
networks:
frontend:
driver: bridge
backend:
driver: bridge