-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 949 Bytes
/
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
services:
www:
image: serversideup/php:8.3-fpm-nginx-alpine
# restart: always
# environment:
# - PHP_OPCACHE_ENABLE=1
expose:
- 8080
labels:
- traefik.enable=true
- traefik.http.routers.php.rule=Host(`${APP_DOMAIN}`)
- traefik.http.routers.php.entrypoints=web
- traefik.http.routers.php.service=php-service
- traefik.http.services.php-service.loadbalancer.server.port=8080
volumes:
- ./src:/var/www/html
networks:
- main-net
reverse-proxy:
image: traefik:v3.0.0
# restart: always
ports:
- "80:80"
# - "8080:8080"
environment:
- TRAEFIK_PROVIDERS_DOCKER=true
- TRAEFIK_PROVIDERS_DOCKER_EXPOSEDBYDEFAULT=false
# - TRAEFIK_API_INSECURE=true
- TRAEFIK_ENTRYPOINTS_WEB_ADDRESS=:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- main-net
networks:
main-net:
driver: bridge