-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (35 loc) · 992 Bytes
/
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
version: '3.5'
services:
compra_local_api:
image: compra_local_api
container_name: compra_local_api
depends_on:
- compra_local_db_test
env_file:
- "./api/.env"
build: api
restart: always
volumes:
- "./bin/wait-for-it.sh:/bin/wait-for-it"
ports:
- "9080:9080"
command: wait-for-it compra_local_db_test:5432 -t 0 -- uwsgi --ini uwsgi.ini
compra_local_nginx:
image: nginx:latest
container_name: compra_local_nginx
depends_on:
- compra_local_api
restart: always
ports:
- "8080:8080"
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 compra_local_api:9080 -t 0 -- nginx -g 'daemon off;'
compra_local_db_test:
image: postgres:latest
container_name: compra_local_db_test
restart: always
environment:
POSTGRES_PASSWORD: compra_local_db_test_password