-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
executable file
·61 lines (56 loc) · 1.1 KB
/
docker-compose.yaml
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
53
54
55
56
57
58
59
60
61
version: '3'
services:
nginx:
image: nginx
volumes:
- ./../:/var/www/html
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
depends_on:
- php-fpm
networks:
- symfony
postgres:
image: postgres:latest
container_name: 'postgresql'
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_DB: 'slaveapp_db'
POSTGRES_USER: 'slave_user'
POSTGRES_PASSWORD: '124fFv2GddQds'
volumes:
- ./postgres/data:/var/lib/postgresql/data
networks:
- symfony
php-fpm:
container_name: 'php-fpm'
build:
context: ./php-fpm
volumes:
- ./../:/var/www/html
- ./php-fpm/php.ini:/usr/local/etc/php/php.ini
environment:
- .env
depends_on:
- postgres
networks:
- symfony
admin:
image: adminer
restart: always
depends_on:
- postgres
ports:
- 8080:8080
networks:
- symfony
networks:
symfony :
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.221.0/28