-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 956 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
40
41
42
version: '3.8'
services:
web:
build:
context: ./server/docker/web
args:
- WWW_USER_ID=${WWW_USER_ID:-1000}
- WWW_GROUP_ID=${WWW_GROUP_ID:-1000}
container_name: ${COMPOSE_PROJECT_NAME:-${APP_NAME}}_web
volumes:
- ./backend/:/var/www/html
- ./server/docker/web/php.ini:/usr/local/etc/php/php.ini
ports:
- ${PORT_HTTP:-80}:80
- ${PORT_HTTPS:-443}:443
networks:
- frontend
- backend
db:
build: ./server/docker/db
container_name: ${COMPOSE_PROJECT_NAME:-${APP_NAME}}_db
volumes:
- db-store:/var/lib/postgresql/data:delegated
ports:
- ${PORT_DB:-5432}:5432
environment:
- POSTGRES_DB=${DB_DATABASE:-${APP_NAME}}
- POSTGRES_USER=${DB_USERNAME:-postgres}
- POSTGRES_PASSWORD=${DB_PASSWORD:-postgres}
networks:
- backend
volumes:
db-store:
networks:
frontend:
driver: bridge
backend:
driver: bridge