-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (49 loc) · 1.18 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
---
services:
fam-database:
extends:
file: docker-base-services.yml
service: fam-database
container_name: fam-postgres
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
fam-flyway:
extends:
file: docker-base-services.yml
service: fam-flyway
environment:
- FLYWAY_URL=jdbc:postgresql://fam-postgres:${POSTGRES_PORT}/fam
depends_on:
fam-database:
condition: service_healthy
fam-api:
container_name: fam-api
env_file: server/backend/local-dev.env
environment:
- POSTGRES_HOST=fam-postgres # overrides 'localhost' in local-dev.env
build:
context: server/backend
dockerfile: Dockerfile
depends_on:
- fam-flyway
ports:
- 8000:8000
networks:
- fam
fam-admin-management-api:
container_name: fam-admin-management-api
env_file: server/admin_management/local-dev.env
environment:
- POSTGRES_HOST=fam-postgres # overrides 'localhost' in local-dev.env
build:
context: server/admin_management
dockerfile: Dockerfile
depends_on:
- fam-flyway
ports:
- 8001:8001
networks:
- fam
networks:
fam:
driver: bridge