-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (50 loc) · 986 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (50 loc) · 986 Bytes
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
services:
caddy:
container_name: caddy
image: caddy:2-alpine
ports:
- 80:80
- 443:443
- 443:443/udp
volumes:
- ./volumes/caddy:/etc/caddy
- ./projects:/var/www
- caddy-data:/data
- caddy-config:/config
depends_on:
- php
networks:
- hydrogen
php:
container_name: php84
build:
context: ./config/php
args:
UID: ${UID}
GID: ${GID}
user: "${UID}:${GID}"
depends_on:
- postgres
volumes:
- ./volumes/php:/etc/php
- ./projects:/var/www
networks:
- hydrogen
postgres:
container_name: postgres
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./volumes/postgres:/var/lib/postgresql
networks:
- hydrogen
networks:
hydrogen:
driver: bridge
volumes:
caddy-data:
caddy-config: