-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (40 loc) · 1.27 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
services:
database:
image: postgres
#build:
#context: ${PATH_WEBCENTRAL_SRC}/postgres
#dockerfile: Dockerfile
#command: >
#bash -c "psql --username ${POSTGRES_USER} ${POSTGRES_DB} < /tmp/dump.sql"
ports:
- ${DATABASE_OUTSIDE_PORT}:${DATABASE_INSIDE_PORT}
volumes:
#- ./postgres/${DATABASE_PLAIN_SQL_FILE}:/docker-entrypoint-initdb.d/${DATABASE_PLAIN_SQL_FILE}
- pgdata:/var/lib/postgresql/data
env_file:
- .env
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
start_period: 3s
container_name: database
webcentral:
build:
context: ${PWD}/webcentral/
dockerfile: Dockerfile
target: base
args:
PATH_WEBCENTRAL_SRC: ${PWD}
WEBCENTRAL_UNPRIVILEGED_USER: ${WEBCENTRAL_UNPRIVILEGED_USER}
ports:
- ${WEBCENTRAL_OUTSIDE_PORT}:${WEBCENTRAL_INSIDE_PORT}
depends_on:
- database
env_file:
- .env
environment:
- TZ=Europe/Berlin
- WEBCENTRAL_LISTEN_PORT
container_name: webcentral
volumes:
pgdata: