-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.79 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
version: "2.4"
services:
online-web:
image: ghcr.io/wetfish/online:${ENV_TAG}-nginx # Use the ENV_TAG variable for dynamic image selection
container_name: online-web
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
volumes:
- ./storage/fish:/var/www/forum/fish:ro
- ./storage/cache:/var/www/forum/cache:ro
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
online-internal: {}
traefik-backend: {}
online-php:
image: ghcr.io/wetfish/online:${ENV_TAG}-php # Dynamically set PHP image tag
container_name: online-php
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
env_file:
- ./php.env
volumes:
- ./storage/fish:/var/www/forum/fish:rw
- ./storage/cache:/var/www/forum/cache:rw
- ./config/php-fpm.conf:/etc/php/5.6/fpm/php-fpm.conf:ro
- ./config/php-fpm-pool.conf:/etc/php/5.6/fpm/pool.d/www.conf:ro
- ./config/php.ini:/etc/php/5.6/fpm/php.ini:ro
networks:
online-internal: {}
online-db:
image: docker.io/mariadb:10.10
container_name: online-db
restart: unless-stopped
command: --sql_mode=""
env_file:
- ./mariadb.env
volumes:
- ./config/docker.sql:/docker-entrypoint-initdb.d/setup.sql:ro
- ./db/data:/var/lib/mysql:rw
networks:
online-internal: {}
online-watchtower:
image: ghcr.io/containrrr/watchtower:1.5.3
container_name: online-watchtower
environment:
- "WATCHTOWER_CLEANUP=true"
- "WATCHTOWER_POLL_INTERVAL=30"
- "WATCHTOWER_LABEL_ENABLE=true"
- "NO_COLOR=true"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
online-internal:
driver: bridge
traefik-backend:
external: true