-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 976 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
networks:
megio-apps:
volumes:
postgres_data:
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: "no"
environment:
QUEUE_WORKERS_ENABLED: ${QUEUE_WORKERS_ENABLED}
networks:
- megio-apps
ports:
- "8090:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/http.d/default.conf:/etc/nginx/http.d/default.conf
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- $PWD:/var/www/html:cached
postgres:
image: postgres:16
#restart: on-failure because postgres shutdown on first creation (permissions problem)
restart: "on-failure"
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
networks:
- megio-apps
ports:
- "${DB_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- $PWD/docker/temp:/var/lib/postgresql/temp