-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yml
39 lines (35 loc) · 887 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
37
38
39
version: "3.7"
networks:
frontend:
backend:
services:
worker:
container_name: packagist-worker
build: ./docker/worker
command: "bash /home/root/sync.sh"
tty: true
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
ports:
- 127.0.0.1:9248:80
depends_on:
- php-fpm
networks:
- frontend
- backend
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