-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
100 lines (100 loc) · 2.27 KB
/
docker-compose.dev.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
91
92
93
94
95
96
97
98
99
100
version: "3.8"
services:
web:
build:
args:
uid: 1000
TZ: America\New_York
context: ./
dockerfile: Dockerfile
image: loger
container_name: loger-app
ports:
- 80:80
- 443:443
restart: unless-stopped
env_file:
- path: ./.env.docker
required: false
volumes:
- ./:/app
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./docker-compose/web/timezone:/etc/timezone
- loger_db:/var/lib/mysql
environment:
DEBUG: "debug"
# Change the following value if you know how it works.
# MERCURE_TRANSPORT_URL: "bolt://mercure.db"
MERCURE_URL: "${MERCURE_URL}"
MERCURE_JWT_TOKEN: "${MERCURE_PUBLISHER_JWT_KEY}"
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
networks:
- loger
depends_on:
- db
- redis
db:
image: mariadb:10.8.4
container_name: loger-db
restart: always
env_file:
- .env.docker
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
memcached:
image: 'memcached:alpine'
ports:
- '11211:11211'
networks:
- loger
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- 1025:1025
- 8025:8025
networks:
- loger
cron:
build:
context: .
dockerfile: cron.dockerfile
container_name: cron
volumes:
- ./:/app
depends_on:
- web
networks:
- loger
volumes:
loger_db:
driver: local
networks:
loger:
driver: bridge