-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.27 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
version: "3.5"
services:
server:
container_name: bilemo-caddy
image: caddy:alpine
depends_on:
- backend
volumes:
- ./:/app
- ./system/server/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
labels:
traefik.enable: true
traefik.http.routers.bilemo.rule: Host(`bilemo.anagraph.org`)
# Uncomment below to earn web access to the project without Traefik
ports:
# - 8000:80
- 443:443
backend:
container_name: bilemo-php
build:
context: .
dockerfile: system/backend/Dockerfile
args:
PHP_VERSION: 8
COMPOSER_VERSION: 2
depends_on:
- database
volumes:
- .:/app
# Uncomment below if you need to pass some custom instructions to php.ini
# - ./system/backend/php-custom.ini:/usr/local/etc/php/php.ini
database:
container_name: bilemo-mysql
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: ChangeMe
MYSQL_DATABASE: bilemo
volumes:
- mysql_data:/var/lib/mysql
# Uncomment below to earn direct access to the database
# ports:
# - 3306:3306
volumes:
caddy_data:
caddy_config:
mysql_data:
# Uncomment below to link with Traefik
#networks:
# default:
# external: true
# name: proxy