-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.07 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
version: '3.7'
services:
db:
container_name: db
build: ./postgres
environment:
POSTGRES_PASSWORD: example
networks:
- db
php:
container_name: php-fpm
build: ./php7-fpm
ports:
- 9000:9000
volumes:
- ./symfony:/var/www/symfony
- ./logs/symfony:/var/www/symfony/var/log
depends_on:
- db
networks:
- db
- php
- redis
nginx:
container_name: nginx
build: ./nginx
ports:
- 80:80
depends_on:
- php
networks:
- php
volumes:
- ./logs/nginx:/var/log/nginx
- ./symfony/public:/var/www/symfony/public
redis:
container_name: redis
image: redis:alpine
ports:
- 6379:6379
networks:
- redis
adminer:
image: adminer:latest
ports:
- 8080:8080
networks:
- db
networks:
db:
php:
redis: