-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 1.54 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
services:
php:
image: starter-php
build:
context: .
dockerfile: .docker/Dockerfile
target: frankenphp_dev
environment:
SERVER_NAME: ":80"
volumes:
- ./:/app
- ./.docker/franken/Caddyfile:/etc/caddy/Caddyfile
- ~/.composer:/root/.composer:delegated
- starter_caddy_data:/data
- starter_caddy_config:/config
tty: true
deploy:
labels:
- traefik.enable=true
- traefik.http.services.starter.loadbalancer.server.port=80
- traefik.http.routers.starter.rule=Host(`starter.local.barlito.fr`)
- traefik.http.routers.starter.entrypoints=http
# - traefik.http.routers.starter.middlewares=tls-redirectscheme
- traefik.http.routers.starter-secure.rule=Host(`starter.local.barlito.fr`)
- traefik.http.routers.starter-secure.entrypoints=https
- traefik.http.routers.starter-secure.tls=true
networks:
- traefik_traefik_proxy
# - starter_internal
# db:
# image: postgres:16
# environment:
# POSTGRES_PASSWORD: root
# volumes:
# - starter_db_data:/var/lib/postgresql/data:rw
# networks:
# - starter_internal
volumes:
starter_caddy_data:
starter_caddy_config:
# starter_db_data:
networks:
traefik_traefik_proxy:
external: true
# starter_internal:
# driver: overlay