-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
90 lines (90 loc) · 2.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.7"
services:
web:
build:
args:
uid: 1000
TZ: America\New_York
context: ./
dockerfile: Dockerfile
image: loger
container_name: loger-app
restart: unless-stopped
depends_on:
- db
volumes:
- ./:/app
- ./Caddyfile:/etc/caddy/Caddyfile
- ./docker-compose/web/timezone:/etc/timezone
- loger_db:/var/lib/mysql
networks:
- loger
ports:
- 3000:80
environment:
DEBUG: "debug"
# Change the following value if you know how it works.
# MERCURE_TRANSPORT_URL: "bolt://mercure.db"
MERCURE_PUBLISHER_JWT_KEY: "${MERCURE_PUBLISHER_JWT_KEY}"
MERCURE_SUBSCRIBER_JWT_KEY: "${MERCURE_SUBSCRIBER_JWT_KEY}"
# In the cors_origin, add your domain(s). Or just use *
MERCURE_EXTRA_DIRECTIVES: |-
cors_origins "*"
anonymous
db:
image: mariadb:10.8.4
container_name: loger-db
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./docker-compose/mysql:/docker-entrypoint-initdb.d
- loger_db:/var/lib/mysql
- ./docker-compose/mysql:/home/root/cache/
networks:
- loger
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- ./docker-compose/redis:/data
networks:
- loger
cron:
build:
context: .
dockerfile: cron.dockerfile
container_name: cron
volumes:
- ./:/app
working_dir: /app
depends_on:
- web
networks:
- loger
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
expose:
- "8002"
env_file: .env
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
networks:
loger:
driver: bridge
volumes:
loger_db:
driver: local