-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
48 lines (44 loc) · 1.19 KB
/
docker-compose.prod.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
version: "2.1"
services:
web:
build:
context: .
dockerfile: "Dockerfile"
args:
NODE_ENV: production
environment:
NODE_ENV: production
BASE_URL: /boilerplate-isomorphic-typescript/
volumes:
- /var/log/boilerplate-isomorphic-typescript/:/var/log/boilerplate-isomorphic-typescript/
- $HOME/.deployment-keys/boilerplate-isomorphic-typescript.env:/root/.deployment-keys/boilerplate-isomorphic-typescript.env
restart: always
labels:
- "traefik.frontend.rule=PathPrefix:/boilerplate-isomorphic-typescript/"
- "traefik.docker.network=traefik_front"
networks:
- front
- application-backend
healthcheck:
test: "curl -f http://localhost/boilerplate-isomorphic-typescript/ || exit 1"
interval: 30s
retries: 10
mysql:
image: mysql:5
restart: always
env_file:
- $HOME/.deployment-keys/boilerplate-isomorphic-typescript.env
networks:
- application-backend
volumes:
- mysql:/var/lib/mysql/
healthcheck:
test: "mysqladmin ping --silent"
networks:
application-backend:
driver: bridge
front:
external:
name: traefik_front
volumes:
mysql: