-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (48 loc) · 931 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
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.7"
services:
btadb:
build:
context: backend/db
dockerfile: Dockerfile
networks:
- backend
ports:
- "5433:5432"
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=buscatuarepa
restart: always
apibta:
build:
context: backend/api
dockerfile: Dockerfile
networks:
- backend
- frontend
ports:
- "8080:8080"
environment:
- DATASOURCE_USERNAME=docker
- DATASOURCE_PASSWORD=docker
- DATASOURCE_IP=btadb
- DATASOURCE_PORT=5432
- DATASOURCE_DATABASE=buscatuarepa
depends_on:
- btadb
restart: on-failure
webappbta:
build:
context: frontend
dockerfile: Dockerfile
networks:
- frontend
ports:
- "8181:80"
depends_on:
- btadb
- apibta
restart: on-failure
networks:
backend: {}
frontend: {}