-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
67 lines (64 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.6"
services:
app:
container_name: benotes_app
image: fr0tt/benotes:latest
restart: unless-stopped
environment:
DB_CONNECTION: ${DB_CONNECTION}
ports:
- ${APP_PORT}:80
volumes:
- .env:/var/www/.env
#- ./data/storage/app/public/thumbnails:/var/www/storage/app/public/thumbnails
#- ./data/storage/backup:/var/www/storage/backup
#- ./data/storage/logs:/var/www/storage/logs
# or instead one named volume to rule them all:
- benotes_storage:/var/www/storage
# this is optional (either way):
#- ./data/nginx/logs/:/var/lib/nginx/logs/
networks:
- benotes
db:
container_name: benotes_db
image: postgres:15.2-alpine
restart: unless-stopped
environment:
POSTGRES_DATABASE: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- ${DB_PORT}
volumes:
- benotes_postgres:/var/lib/postgresql/data
networks:
- benotes
#
# If you wish to use MySQL instead remove the lines above, uncomment the following
# and change DB_PORT in your .env file to 3306
#
# db:
# container_name: benotes_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:
# - ${DB_PORT}
# volumes:
# - benotes_mysql:/var/lib/mysql
# networks:
# - benotes
networks:
benotes:
driver: bridge
volumes:
benotes_postgres:
driver: "local"
# benotes_mysql:
# driver: "local"
benotes_storage:
driver: "local"