-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
55 lines (50 loc) · 1.08 KB
/
compose.yaml
File metadata and controls
55 lines (50 loc) · 1.08 KB
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
networks:
- internal
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASS=${DATABASE_PASS}
- DATABASE_NAME=${DATABASE_NAME}
depends_on:
- db
entrypoint: ["/bin/sh", "/app/entrypoint.sh"]
networks:
- internal
db:
image: postgres:17.5-alpine3.21
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASS}
- POSTGRES_DB=${DATABASE_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- internal
caddy:
image: caddy:2.10.0-alpine
ports:
- "80:80"
volumes:
- ./infrastructure/Caddyfile:/etc/caddy/Caddyfile
depends_on:
- frontend
- backend
networks:
- internal
volumes:
postgres_data:
networks:
internal:
driver: bridge