-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (48 loc) · 1.17 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
version: '3.5'
services:
agenda_api:
image: agenda_api
container_name: agenda_api
build: ./api
depends_on:
- agenda_db
restart: always
ports:
- "9080"
volumes:
- "./bin/wait-for-it.sh:/bin/wait-for-it"
- "./api:/app"
command: wait-for-it agenda_db:5432 -t 0 -- uwsgi --ini uwsgi.ini
agenda_client:
image: agenda_client
container_name: agenda_client
build: ./client
restart: "no"
volumes:
- /app/node_modules
agenda_nginx:
image: agenda_nginx
container_name: agenda_nginx
build: ./nginx
depends_on:
- agenda_api
- agenda_client
restart: always
ports:
- "8090:80"
volumes:
- "./bin/wait-for-it.sh:/bin/wait-for-it"
- "./nginx/conf/nginx.conf:/etc/nginx/nginx.conf"
- "./nginx/log:/var/nginx/log"
command: wait-for-it agenda_api:9080 -t 0 -- nginx -g 'daemon off;'
agenda_db:
image: postgres:latest
container_name: agenda_db
restart: always
environment:
POSTGRES_PASSWORD: agenda1234
ports:
- "8091:5432"
volumes:
- "./db/data:/var/lib/postgresql/data"
- "./db/init:/docker-entrypoint-initdb.d"