-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
41 lines (40 loc) · 1.08 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
version: '3'
services:
website:
build:
context: .
dockerfile: .docker/app/Dockerfile
image: costs.website.app
container_name: costs.website.app
ports:
- "80:80"
volumes:
- .:/var/www/html
env_file: .env
environment:
TZ: UTC
DB_HOST: ${DB_CONNECTION}
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
mysql:
build:
context: .
dockerfile: .docker/mysql/Dockerfile
image: costs.website.mysql
container_name: costs.website.mysql
ports:
- "3306:3306"
env_file: .env
environment:
TZ: UTC
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
volumes:
- ./.docker/mysql/data:/var/lib/mysql
networks:
default:
name: costs.network
external: true