forked from volkar/docker-symfony-vite-vue-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·45 lines (45 loc) · 1.23 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
version: '3.8'
services:
nginx:
build:
context: ./docker/nginx
container_name: nginx
volumes:
- .:/var/www:rw
- ./logs/nginx:/var/log/nginx/:rw
ports:
- 80:80
restart: always
depends_on:
- php
php:
build:
context: ./docker/php
args:
- PUID=${PUID}
- PGID=${PGID}
- INSTALL_XDEBUG=${INSTALL_XDEBUG}
container_name: php
restart: always
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
depends_on:
- postgres
volumes:
- .:/var/www
postgres:
build:
context: ./docker/postgres
container_name: postgres
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- ${POSTGRES_HOST_PORT}:${POSTGRES_CONTAINER_PORT}
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data:rw