-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.32 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
version: '3.6'
services:
app:
build:
context: ./app
args:
TZ: ${TZ:?TZ unset. Use `make .env`.}
PROJECT_PREFIX: ${APP_PREFIX_DIR:?APP_PREFIX_DIR unset. Use `make .env`.}
# Use docker-compose.override.yml to target the `development` environment.
target: production
restart: unless-stopped
tty: true
environment:
- TERM=xterm-256color
volumes:
- ./app/entrypoint.sh:${APP_PREFIX_DIR}/entrypoint.sh
- ./_env/config.json:${APP_PREFIX_DIR}/_env/config.json:ro
# File store volumes should be defined in docker-compose.override.yml.
# They need to match up with the [rdb_dest.file_store] parameter in
# _env/config.json. Below values are just examples.
# - ./_data/app:${APP_PREFIX_DIR}/_data/volume_a
# - /Volumes/OVPSync_extra:${APP_PREFIX_DIR}/_data/volume_b
depends_on:
- db
db:
build:
context: ./db
args: [ TZ ]
restart: unless-stopped
ports: [ "3306" ]
environment:
- TERM=xterm-256color
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
tty: true
volumes:
- ./_data/db/data:/var/lib/mysql
- ./db/schema.sql:/docker-entrypoint-initdb.d/001-schema.sql:ro
- ./_env/mysql-dump.sql:/docker-entrypoint-initdb.d/002-dump.sql:ro