-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
45 lines (41 loc) · 1.15 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
version: '3.7'
volumes:
pgdata:
driver: local
services:
postgres:
image: postgres
container_name: teacher_workout_db
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${EXPOSED_DB_PORT}:5432
volumes:
- pgdata:/var/lib/postgresql/data
migrator:
container_name: teacher_workout_migrator
build:
context: .
dockerfile: TeacherWorkout.Migrator.Dockerfile
environment:
ConnectionStrings__TeacherWorkoutContext: ${DB_CONNECTION_STRING}
SeedData: ${SEEDDATA}
depends_on:
- "postgres"
api:
container_name: teacher_workout_api
depends_on:
- "postgres"
- "migrator"
build:
context: .
dockerfile: Dockerfile
environment:
ASPNETCORE_URLS: ${ASPNETCORE_URLS}
ConnectionStrings__TeacherWorkoutContext: ${DB_CONNECTION_STRING}
ConnectionStrings__IdentityDbConnectionString: ${DB_CONNECTION_STRING}
ports:
- ${EXPOSED_APP_PORT}:80
restart: unless-stopped