-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
56 lines (52 loc) · 1.14 KB
/
docker-compose-dev.yaml
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
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
x-common-variables: &DB_VARIABLES
DATABASE_HOST: db-dev
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: mysecretpassword
DATABASE_NAME: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: postgres
services:
# SERVER
server:
build:
context: .
dockerfile: app/Dockerfile
container_name: server_container
restart: always
environment:
<<: *DB_VARIABLES
ports:
- '8000:8000'
volumes:
- ./app:/web/app
- ./tests:/web/tests
depends_on:
db-dev:
condition: service_healthy
# DATENBANK
db-dev:
container_name: pg_container
image: postgres
restart: always
environment:
<<: *DB_VARIABLES
ports:
- '5432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U root']
interval: 5s
timeout: 5s
retries: 5
# WEBÖBERFLÄSCHÖ
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- '5050:80'