-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
54 lines (54 loc) · 1.39 KB
/
docker-compose.dev.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
43
44
45
46
47
48
49
50
51
52
53
54
services:
caddy:
image: caddy:2.7
privileged: true
ports:
- 2000:2000
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
db:
image: postgres:latest
privileged: true
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 30
environment:
POSTGRES_USER: planera
POSTGRES_PASSWORD: planera
POSTGRES_DB: planera
volumes:
- ./data/db:/var/lib/postgresql/data
planera-api:
image: planera-api
privileged: true
depends_on:
db:
condition: service_healthy
environment:
PLANERA_FRONTENDURL: https://localhost:2000
PLANERA_EMAILCONFIRMATION: "false"
PLANERA_POSTGRES__HOST: "db:5432"
PLANERA_POSTGRES__USER: planera
PLANERA_POSTGRES__PASSWORD: planera
PLANERA_POSTGRES__DB: planera
PLANERA_SMTP__HOST: mx.example.org
PLANERA_SMTP__PORT: 587
PLANERA_SMTP__USER: user
PLANERA_SMTP__PASSWORD: password
PLANERA_SMTP__SENDER: noreply@example.org
build:
context: .
dockerfile: api/Dockerfile
volumes:
- ./data/api:/app/data
planera-web:
image: planera-web
environment:
ORIGIN: https://localhost:2000
VITE_PUBLIC_API_URL: https://localhost:2000/api
build:
context: .
dockerfile: web/Dockerfile