-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.1 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
x-database-details: &DATABASE_DETAILS
Database__Host: enpal-coding-challenge-db
Database__Port: 5432
Database__Name: coding-challenge
Database__User: postgress
Database__Password: mypassword123!
services:
appointmentsystem-api:
build:
context: .
dockerfile: ./AppointmentSystem.Api/Dockerfile
environment:
<<: *DATABASE_DETAILS
networks:
- appointment-system-network
ports:
- "3000:5049"
depends_on:
- enpal-coding-challenge-db
appointmentsystem-migrations:
build:
context: .
dockerfile: ./AppointmentSystem.MigrationRunner/Dockerfile
environment:
<<: *DATABASE_DETAILS
networks:
- appointment-system-network
depends_on:
- enpal-coding-challenge-db
restart: on-failure
enpal-coding-challenge-db:
image: postgres:16
environment:
POSTGRES_USER: postgress
POSTGRES_PASSWORD: mypassword123!
ports:
- "5433:5432"
networks:
- appointment-system-network
restart: always
networks:
appointment-system-network:
driver: bridge