-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
83 lines (75 loc) · 1.63 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.9'
volumes:
postgres_data:
seq_data:
pubnet_packages:
caddy_data:
caddy_config:
services:
database:
image: postgres:latest
restart: unless-stopped
environment:
POSTGRES_USER: "pubnet"
POSTGRES_PASSWORD: "pubnet"
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
adminer:
image: adminer
restart: unless-stopped
ports:
- "8080:8080"
depends_on:
- database
seq:
image: datalust/seq
restart: unless-stopped
environment:
ACCEPT_EULA: "Y"
volumes:
- "seq_data:/data"
ports:
- "5380:80"
- "5341:5341"
backend:
build:
dockerfile: ./PubNet.API/Dockerfile
target: final
restart: unless-stopped
volumes:
- "./backend-appsettings.json:/app/appsettings.Production.json"
- "pubnet_packages:/app/packages"
depends_on:
- database
- caddy
worker:
build:
dockerfile: ./PubNet.Worker/Dockerfile
target: final
restart: unless-stopped
volumes:
- "./worker-appsettings.json:/app/appsettings.Production.json"
- "pubnet_packages:/app/packages"
depends_on:
- database
frontend:
build:
dockerfile: ./PubNet.Frontend/Dockerfile
restart: unless-stopped
depends_on:
- backend
- caddy
# you can choose any reverse proxy you want, Caddy is not required
caddy:
image: caddy
restart: unless-stopped
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile"
- "caddy_data:/data"
- "caddy_config:/config"
ports:
- "80:80"
- "443:443"
- "443:443/udp"