-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.16 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
services:
api:
build:
dockerfile: Dockerfile
context: ./backend
target: development
volumes:
- .:/usr/src/app
env_file:
- .env
command: yarn start:dev
ports:
- 8080:3000
depends_on:
database:
condition: service_healthy
networks:
- gila
frontend:
build:
dockerfile: Dockerfile
context: ./frontend
target: development
volumes:
- .:/usr/src/app
environment:
REACT_APP_API_BASE_URL: "http://localhost:8080"
command: yarn start
ports:
- 3000:3000
networks:
- gila
database:
image: postgres
volumes:
- ./database/database-creation.sql:/docker-entrypoint-initdb.d/database-creation.sql
- ./database/database-seed.sql:/docker-entrypoint-initdb.d/database-seed.sql
environment:
PGUSER: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- "5432:5432"
networks:
- gila
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
networks:
gila:
name: gila