-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
41 lines (40 loc) · 955 Bytes
/
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
version: '2.1'
services:
db:
container_name: db
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=mysqldb
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- ./db/data:/var/lib/mysql
- ./db/init:/docker-entrypoint-initdb.d/:ro
healthcheck:
test: "/etc/init.d/mysql status"
interval: 1s
retries: 120
web:
build: .
links:
- db
container_name: crash-reporter-app
restart: always
ports:
- "8000:8000"
environment:
- NODE_ENV=production
- WEB_PORT=${WEB_PORT}
- DB_HOST=db
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_PORT=${DB_PORT}
- COOKIE_SECRET=${COOKIE_SECRET}
- YAR_COOKIE_SECRET=${YAR_COOKIE_SECRET}
depends_on:
db:
condition: service_healthy