-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.prod.yml
51 lines (46 loc) · 1.3 KB
/
docker-compose.prod.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
version: "3.7"
networks:
frontend:
backend:
web:
external: true
services:
worker:
container_name: packagist-worker
build: ./docker/worker
command: "bash /home/root/sync.sh"
tty: true
environment:
SLEEP: 300
volumes:
- .:/var/www:cached
networks:
- backend
nginx:
container_name: packagist-nginx
build: ./docker/nginx
volumes:
- .:/var/www:cached
- ./docker/nginx/sites/:/etc/nginx/sites-available
labels:
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.docker.network=web"
- "traefik.http.routers.packagist.rule=Host(`packagist.com.br`)"
- "traefik.http.routers.packagist.tls=true"
- "traefik.http.routers.packagist.tls.certresolver=le"
- "traefik.http.routers.packagist.entrypoints=websecure"
depends_on:
- php-fpm
networks:
- frontend
- backend
- web
php-fpm:
container_name: packagist-php-fpm
build: ./docker/php-fpm
volumes:
- ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini
- .:/var/www:cached
networks:
- backend