-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.23 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
56
57
58
version: '3.4'
services:
pg:
image: postgres
container_name: postgres
volumes:
- db:/var/lib/postgresql/data
networks:
- localnetwork
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbuserpassword
- POSTGRES_DB=contestgenerator
restart: always
caddy:
image: caddy:latest
container_name: caddy
restart: always
ports:
- 80:80
- 443:443
networks:
- caddy
- localnetwork
volumes:
- ./Caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
contestgenerator:
image: yungd1plomat/contestgenerator
container_name: contestgenerator
environment:
- CONNECTION_STRING=Host=pg;Port=5432;Database=contestgenerator;Username=dbuser;Password=dbuserpassword;Timeout=180;CommandTimeout=180;
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:5000;
- ADMIN_PASS=Admin_12345
build:
context: .
dockerfile: ContestGenerator/Dockerfile
networks:
- localnetwork
depends_on:
- pg
- caddy
restart: always
networks:
caddy:
external: true
localnetwork:
external: false
volumes:
db:
caddy_data:
caddy_config: