forked from gathering/wannabe4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
44 lines (41 loc) · 1.1 KB
/
docker-compose.dev.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
version: "3.5"
services:
nginx:
volumes:
- ./:/var/www/html/wannabe
- ./build/wannabe-nginx.conf:/etc/nginx/templates/default.conf.template
environment:
- MYSQL_URL=mysql
- MYSQL_USERNAME=wannabe
- MYSQL_PASSWORD=wannabe
- AUTH_COOKIE_KEY=if-you-see-me-in-prod-run-away
- URL_SIGN_SECRET=if-you-see-me-in-prod-run-away
app:
build:
target: development
volumes:
# Mount entire local app folder for development usage
- ./:/var/www/html/wannabe
networks:
- wannabe_public
- wannabe_internal
environment:
- APP_ENV=development
- LOG_ENGINE=console
- AUTH_COOKIE_KEY=if-you-see-me-in-prod-run-away
- URL_SIGN_SECRET=if-you-see-me-in-prod-run-away
mysql:
image: mysql:5.7
command: mysqld --sql_mode=""
volumes:
- mysql_data:/var/lib/mysql
- ./sql/:/docker-entrypoint-initdb.d
environment:
- MYSQL_USER=wannabe
- MYSQL_PASSWORD=wannabe
- MYSQL_ROOT_PASSWORD=wannabe
- MYSQL_DATABASE=wannabe
networks:
- wannabe_internal
volumes:
mysql_data: