-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
47 lines (43 loc) · 1.16 KB
/
docker-compose.yaml
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
version: "3"
services:
db:
build: .docker/db
container_name: imersao-fullcycle-3-desafio-2-api-db
restart: always
tty: true
environment:
- POSTGRES_PASSWORD=root
- POSTGRES_DB=routes
volumes:
- .docker/db/dbdata:/var/lib/postgresl/data
pgadmin:
image: dpage/pgadmin4
container_name: imersao-fullcycle-3-desafio-2-api-pgadmin
tty: true
environment:
- PGADMIN_DEFAULT_PASSWORD=123456
ports:
- 9000:80
api:
build: .docker/api
entrypoint: dockerize -wait tcp://db:5432 -timeout 60s /entrypoint.sh
container_name: imersao-fullcycle-3-desafio-2-api
ports:
- 3000:3000
volumes:
- ./desafio-2-api:/home/node/app
- ./.docker/api/entrypoint.sh:/entrypoint.sh
depends_on:
- db
frontend:
build: .docker/frontend
entrypoint: dockerize -wait tcp://api:3000 -timeout 60s /entrypoint.sh
container_name: imersao-fullcycle-3-desafio-2-frontend
ports:
- 3001:3000
volumes:
- ./desafio-2-frontend:/home/node/app
- ./.docker/frontend/entrypoint.sh:/entrypoint.sh
depends_on:
- api