forked from fr0tt/benotes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 1.13 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
41
42
43
44
45
46
47
version: "3.6"
services:
app:
container_name: app
build:
args:
- USE_COMPOSER=${USE_COMPOSER}
- INSTALL_NODE=${INSTALL_NODE}
context: ./
restart: unless-stopped
environment:
DB_CONNECTION: ${DB_CONNECTION}
RUN_MIGRATIONS: ${RUN_MIGRATIONS}
ports:
- ${APP_PORT}:80
volumes:
- ./:/var/www
#- benotes_storage:/var/www/storage
- ./docker/data/nginx/logs/:/var/lib/nginx/logs/
networks:
- benotes
db:
container_name: db
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- 3306
volumes:
- benotes_mysql:/var/lib/mysql
networks:
- benotes
networks:
benotes:
driver: bridge
volumes:
benotes_mysql:
driver: "local"
#benotes_storage:
#driver: "local"