-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
58 lines (50 loc) · 1.05 KB
/
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
version: '3.8'
x-volume-root-project: &volume_root_project "./:/var/www/html"
networks:
docker:
driver: bridge
services:
app:
restart: always
build:
context: ./docker/php-fpm
dockerfile: Dockerfile
volumes:
- *volume_root_project
networks:
- docker
depends_on:
- database
nginx:
restart: always
image: nginx:latest
volumes:
- "./docker/nginx/conf.d:/etc/nginx/conf.d:ro"
- *volume_root_project
networks:
- docker
ports:
- "8098:80"
depends_on:
- app
- database
###> doctrine/doctrine-bundle ###
database:
image: postgres:16-alpine
environment:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
TZ: Europe/Moscow
PGTZ: Europe/Moscow
ports:
- "5432:5432"
volumes:
- database_data:/var/lib/postgresql/data:rw
networks:
- docker
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###