-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (41 loc) · 969 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.7'
services:
dionysus:
container_name: dionysus-webapp
build:
context: .
dockerfile: ./environments/dev/Dockerfile
restart: always
env_file:
- .env
environment:
- PORT=${PORT}
volumes:
- .:/app
- ./environments/dev/start-webapp.sh:/start-webapp.sh
ports:
- "${PORT}:${PORT}"
depends_on:
- db
entrypoint:
- /start-webapp.sh
db:
image: postgres:17
expose:
- "${POSTGRES_PORT}"
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
env_file:
- .env
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_INITDB_ARGS=--encoding=UTF-8
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- postgres_data:/var/lib/postgresql/data/
command: -p ${POSTGRES_PORT}
volumes:
postgres_data: