forked from Star-Academy/Summer1403-Project-Group03-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
43 lines (37 loc) · 894 Bytes
/
docker-compose.yaml
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
services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: mohaymen
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
migrate:
image: yaghooli/dotnetdev:latest
command: ["./migrateout"]
depends_on:
- postgres
environment:
CONNECTION_STRING: Host=postgres;Database=mohaymen;Username=postgres;Password=1234;
admin:
image: adminer
restart: always
depends_on:
- postgres
ports:
- 8089:8080
web:
image: yaghooli/dotnetdev:latest
depends_on:
migrate:
condition: service_completed_successfully
environment:
ASPNETCORE_ENVIRONMENT: Development
CONNECTION_STRING: Host=postgres;Database=mohaymen;Username=postgres;Password=1234;
ports:
- "8085:80"
volumes:
pgdata: