-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.08 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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
frontend:
build: ./frontend
hostname: frontend.docker
restart: unless-stopped
backend:
depends_on:
postgres:
condition: service_healthy
build: ./backend
volumes:
- static:/app/uploads
- backup:/app/backup
hostname: backend.docker
restart: unless-stopped
caddy:
build: ./caddy
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- caddy_data:/data
- caddy_config:/config
postgres:
build: ./postgres
volumes:
- pgdata:/var/lib/postgresql/data/pgdata
env_file:
- ./postgres/postgres.env
hostname: database.docker
healthcheck:
test: ["CMD-SHELL", "pg_isready -U docker"]
interval: 1s
timeout: 5s
retries: 30
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4:latest
hostname: pgadmin.docker
depends_on:
postgres:
condition: service_healthy
env_file:
- ./postgres/pgadmin.env
restart: unless-stopped
volumes:
static:
backup:
pgdata:
caddy_data:
caddy_config: