-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
39 lines (36 loc) · 1016 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
version: '3.8'
services:
nginx:
build:
context: .
target: symfony_nginx
ports:
- "${HTTP_PORT:-8000}:80"
depends_on:
- php
- mysql
php:
build:
context: .
target: symfony_php
environment:
- GITHUB_OAUTH_TOKEN=${GITHUB_OAUTH_TOKEN}
- KILN_OAUTH_TOKEN=${KILN_OAUTH_TOKEN}
- MYSQL_USER=${MYSQL_USER:-baton}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-baton}
- MYSQL_DATABASE=${MYSQL_DATABASE:-baton}
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- APP_ENV=production
depends_on:
- mysql
mysql:
image: mysql:8
volumes:
- ./data/mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-baton}
- MYSQL_USER=${MYSQL_USER:-baton}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-baton}
- MYSQL_DATABASE=${MYSQL_DATABASE:-baton}