forked from behind-the-buzzword/8-navigating-live-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 849 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: "3"
services:
app:
build:
context: .
dockerfile: build/docker/app/Dockerfile
args:
BUILD_ENV: dev
volumes:
- ./:/var/www/html
nginx:
build:
dockerfile: build/docker/nginx/Dockerfile
context: .
volumes:
- ./public:/usr/share/nginx/html
environment:
BACKEND_SERVICE: app
CACHE_ZONE: 'off'
ports:
- 80:80
depends_on:
- app
database:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: $DB_PASS
MYSQL_DATABASE: $DB_NAME
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASS
volumes:
- btbw_data:/var/lib/mysql
- ./database.sql:/docker-entrypoint-initdb.d/database.sql
volumes:
btbw_data: