-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
82 lines (76 loc) · 1.83 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
version: "3.5"
services:
bot:
build: ./bot
restart: always
command: /app
volumes:
- ./sounds_dca:/sounds_dca:ro
environment:
- CONFIG_FILE=/run/secrets/config
secrets:
- config
restart: always
backend:
build:
context: ./backend/
dockerfile: dockerfiles/prod/Dockerfile
environment:
- GIN_MODE=release
- VIRTUAL_HOST=${BACKEND_VIRTUAL_HOST}
- LETSENCRYPT_HOST=${BACKEND_LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${BACKEND_LETSENCRYPT_EMAIL}
command: /app -e production
expose:
- 3000
secrets:
- production.yaml
volumes:
- ./sounds_dca:/data/production
restart: always
web:
build:
context: ./web/
args:
- BASE_URL=${BACKEND_URL}
- WEB_TITLE=${WEB_TITLE}
- WEB_DESCRIPTION=${WEB_DESCRIPTION}
- WEB_OG_DESCRIPTION=${WEB_OG_DESCRIPTION}
- WEB_OG_URL=${WEB_OG_URL}
- WEB_OG_IMAGE=${WEB_OG_IMAGE}
- WEB_TWITTER_CARD=${WEB_TWITTER_CARD}
environment:
- VIRTUAL_HOST=${WEB_VIRTUAL_HOST}
- LETSENCRYPT_HOST=${WEB_LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${WEB_LETSENCRYPT_EMAIL}
command: npm run start
expose:
- 9000
restart: always
depends_on:
- backend
admin:
build:
context: ./admin/
args:
- BASE_URL=${BACKEND_URL}
- ADMIN_TITLE=${ADMIN_TITLE}
environment:
- VIRTUAL_HOST=${ADMIN_VIRTUAL_HOST}
- LETSENCRYPT_HOST=${ADMIN_LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${ADMIN_LETSENCRYPT_EMAIL}
command: npm run start
expose:
- 9001
restart: always
depends_on:
- backend
networks:
default:
external:
name: webproxy
secrets:
config:
file: ./bot/config.yml
production.yaml:
file: ./backend/config/environments/production.yaml