-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (71 loc) · 2.17 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
version: '3.7'
services:
redis:
build:
context: .
dockerfile: redis/Dockerfile
container_name: claude_simweb_redis
networks:
- proxy
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
args:
crt: ./certs/localhost.crt
key: ./certs/localhost.key
fastcgi: ./nginx/config/fastcgi.conf
default_conf: ./nginx/config/default.conf
nginx_conf: ./nginx/config/nginx_prod.conf
volumes:
- /var/www/web/simweb/www:/var/www/html
- /var/www/web/simweb/data:/var/www/data
- /var/www/web/simweb/logs/nginx:/var/log/nginx
links:
- php
container_name: claude_simweb_nginx
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.claude_simweb_nginx-secure.entrypoints=websecure"
- "traefik.http.routers.claude_simweb_nginx-secure.middlewares=user-auth@file"
- "traefik.http.routers.claude_simweb_nginx-secure.rule=Host(`${DOMAIN}`)"
db:
build:
context: .
dockerfile: mariadb/Dockerfile
container_name: claude_simweb_db
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --innodb-file-format=Barracuda, --innodb-large-prefix=1, --innodb-file-per-table=1]
volumes:
- /var/www/web/simweb/mysqlData/data:/var/lib/mysql
- /var/www/web/simweb/mariadb/exchange:/data_exchange
- /var/www/web/simweb/mariadb/logs/mysql:/var/logs/mysql
- /var/www/web/simweb/mariadb/data/mariadb/conf:/etc/mysql/conf.d
environment:
- MYSQL_ROOT_PASSWORD=ROOT
- MYSQL_DATABASE=pimcore
- MYSQL_USER=pimcore
- MYSQL_PASSWORD=pimcore
networks:
- proxy
php:
build:
context: .
dockerfile: php/Dockerfile
container_name: claude_simweb_php-fpm
volumes:
- /var/www/web/simweb/www:/var/www/html:cached
- /var/www/web/simweb/data/nginx:/var/www/data
- /var/www/web/simweb/logs/php-fpm:/var/log/php
- /var/www/web/simweb/logs/cron:/var/log/cron
depends_on:
- db
networks:
- proxy
volumes:
pimcore-database:
networks:
proxy:
external: true