-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml.template
81 lines (75 loc) · 1.89 KB
/
compose.yml.template
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
version: '3.8'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- /srv/nginx/certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- 80:80
- 443:443
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
depends_on:
- nginx-proxy
volumes:
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam:ro
- /srv/nginx/certs:/etc/nginx/certs
- /var/run/docker.sock:/var/run/docker.sock:ro
- acme:/etc/acme.sh
environment:
- DEFAULT_EMAIL={MAINTAINER_EMAIL}
- NGINX_PROXY_CONTAINER=nginx-proxy
atcoder-ranking-db:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: atcoder-ranking
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
volumes:
- type: bind
source: ./data/db
target: /data/db
expose:
- 27017
atcoder-ranking-backend:
build: ./backend
environment:
PORT: 4000
MONGO_URI: mongodb://atcoder-ranking-db/atcoder-ranking
ACCESS_SECRET_KEY: {RANDOM_KEY}
ADMIN_PASSWORD: {ADMIN_KEY_HERE}
CLIENT_HOST: {FRONTEND_HOST}
VIRTUAL_HOST: {BACKEND_HOST}
LETSENCRYPT_HOST: {BACKEND_HOST}
working_dir: /app
tty: true
expose:
- 4000
entrypoint: ['npm', 'start']
atcoder-ranking-frontend:
build: ./frontend
environment:
REACT_APP_BACKEND_URL: {BACKEND_HOST}
VIRTUAL_HOST: {FRONTEND_HOST}
LETSENCRYPT_HOST: {FRONTEND_HOST}
working_dir: /app
tty: true
expose:
- 3000
entrypoint: ['npm', 'start']
volumes:
conf:
vhost:
html:
dhparam:
acme: