-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.devel.yaml
79 lines (73 loc) · 1.7 KB
/
docker-compose.devel.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
api:
build:
context: .
dockerfile: docker/Dockerfile-api
extends:
file: docker-compose.base.yaml
service: api
env_file: .env
environment:
ABRECHNUNG_DATABASE__HOST: postgres
depends_on:
postgres:
condition: service_healthy
frontend-dev:
build:
context: .
dockerfile: docker/Dockerfile-devel
target: frontend-dev
depends_on:
api:
condition: service_healthy
nginx:
image: docker.io/nginx:stable-alpine
depends_on:
api:
condition: service_healthy
volumes:
- "./docker/nginx-dynamic:/etc/nginx/conf.d/default.conf"
ports:
- "8080:80"
mailer:
build:
context: .
dockerfile: docker/Dockerfile-api
extends:
file: docker-compose.base.yaml
service: mailer
env_file: .env
environment:
ABRECHNUNG_DATABASE__HOST: postgres
ABRECHNUNG_EMAIL__HOST: mail
ABRECHNUNG_EMAIL__PORT: 1025
ABRECHNUNG_EMAIL__MODE: smtp
depends_on:
api:
condition: service_healthy
cron:
build:
context: .
dockerfile: docker/Dockerfile-api
extends:
file: docker-compose.base.yaml
service: cron
env_file: .env
environment:
ABRECHNUNG_DATABASE__HOST: postgres
ABRECHNUNG_EMAIL__HOST: mail
ABRECHNUNG_EMAIL__PORT: 1025
ABRECHNUNG_EMAIL__MODE: smtp
postgres:
image: docker.io/postgres:14-alpine
env_file: .env
healthcheck:
test: ["CMD", "/usr/local/bin/pg_isready"]
start_period: 10s
volumes:
- "./data/pg:/var/lib/postgresql/data"
mailhog:
image: docker.io/mailhog/mailhog
ports:
- "8025:8025"
env_file: .env