-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (52 loc) · 1.26 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
50
51
52
53
54
55
56
57
58
version: "3.1"
services:
api-gateway:
container_name: ponto-api-gateway
image: nginx
volumes:
- ./infra/nginx/default.conf:/etc/nginx/conf.d/default.conf:z
- ./infra/certificates:/etc/nginx/certificates:z
- ./infra/nginx/log:/var/log/nginx:z
- ./docs/openapi.yml:/openapi.yml:z
ports:
- "443:443"
depends_on:
- api
api:
# container_name duplicated when scale
# container_name: "ponto-api"
build: ./api
env_file:
- ./api/.env
depends_on:
- database
# docker-compose up --scale api=4
# deploy:
# replicas: 4
database:
container_name: ponto-database
image: postgres:13
ports:
- "5432:5432"
env_file:
- ./database/.env
volumes:
- "postgres_data:/var/lib/postgresql/data"
- "./database/sql:/docker-entrypoint-initdb.d/sql:z"
- "./database/setup.sh:/docker-entrypoint-initdb.d/setup.sh:z"
swagger:
container_name: ponto-swagger-ui
image: swaggerapi/swagger-ui
environment:
- API_URL=https://localhost/docs/v1/openapi.yml
pgadmin:
container_name: ponto-pgadmin
image: dpage/pgadmin4
ports:
- "8080:80"
env_file:
- ./database/.env
logging:
driver: none
volumes:
postgres_data: