-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
122 lines (119 loc) · 2.47 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.3"
services:
nginx-proxy:
container_name: nginx-proxy
restart: always
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx_proxy_custom.conf:/etc/nginx/conf.d/nginx_proxy_custom.conf:ro
networks:
- network
acme-companion:
container_name: nginx-proxy-acme
image: nginxproxy/acme-companion
volumes:
- certs:/etc/nginx/certs:rw
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- network
environment:
- DEFAULT_EMAIL=sammyers.dev@gmail.com
- NGINX_PROXY_CONTAINER=nginx-proxy
db:
restart: always
image: sam4core/dc-db
build:
context: ./packages/db
volumes:
- db:/var/lib/postgresql/data
env_file:
- ./prod.env
networks:
- network
ports:
- 5433:5432
migrations:
image: sam4core/dc-migrations
build:
context: ./packages/db
dockerfile: migrations.Dockerfile
env_file:
- ./prod.env
depends_on:
- db
networks:
- network
server:
restart: always
image: sam4core/dc-server
build:
context: ./packages/server
env_file:
- ./prod.env
depends_on:
- db
networks:
- network
ports:
- 5434:5434
worker:
restart: always
image: sam4core/dc-worker
build:
context: ./packages/worker
env_file:
- ./prod.env
depends_on:
- db
networks:
- network
app:
restart: always
image: sam4core/dc-app
build:
context: ./packages/app
depends_on:
- server
networks:
- network
expose:
- "80"
environment:
- VIRTUAL_HOST=dugoutcompanion.app,www.dugoutcompanion.app
- LETSENCRYPT_HOST=dugoutcompanion.app,www.dugoutcompanion.app
dashboard:
restart: always
image: sam4core/dc-dashboard
build:
context: ./packages/dashboard
depends_on:
- server
networks:
- network
expose:
- "80"
environment:
- VIRTUAL_HOST=stats.dugoutcompanion.app
- LETSENCRYPT_HOST=stats.dugoutcompanion.app
networks:
network:
volumes:
db:
conf:
vhost:
html:
dhparam:
certs:
acme: