-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 948 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
42
43
44
45
46
version: '3.8'
services:
app:
build:
context: .
dockerfile: ./.docker/app/Dockerfile
container_name: kosist-app
volumes:
- .:/var/www/site
depends_on:
- db
restart: unless-stopped
nginx:
build:
context: .
dockerfile: ./.docker/nginx/Dockerfile
container_name: kosist-nginx
volumes:
- .:/var/www/site
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "${DOCKER_NGINX_PORT}:443"
depends_on:
- app
restart: unless-stopped
db:
image: mysql:8
container_name: kosist-db
ports:
- "${DOCKER_DB_PORT}:3306"
environment:
MYSQL_DATABASE: kosist
MYSQL_ROOT_PASSWORD: kosist
MYSQL_USER: kosist
MYSQL_PASSWORD: kosist
volumes:
- kosist-data:/var/lib/mysql
restart: unless-stopped
networks:
kosist-network:
driver: bridge
volumes:
kosist-data:
driver: local