-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (42 loc) · 1019 Bytes
/
compose.yaml
File metadata and controls
46 lines (42 loc) · 1019 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
services:
db:
# We aren't scaling these up, so give them prettier names.
container_name: 'db'
build:
context: './docker'
dockerfile: 'Dockerfile.postgres'
env_file: '.env'
volumes:
- 'db_data:/var/lib/postgresql/data'
dbadmin:
container_name: 'dbadmin'
depends_on:
- 'db'
# This used to (<= 4.8.0) be based on Alpine, but then PHP 7.4 was deprecated,
# and Adminer has gone pretty unmaintained. So we settle for this image based
# on Debian Bullseye.
image: 'adminer:4.8.1'
ports:
- '8080:8080'
prep: &node
container_name: 'prep'
depends_on:
- 'db'
build:
context: './docker'
dockerfile: 'Dockerfile.pnpm'
target: 'dev'
env_file: '.env'
volumes:
- '.:/home/node/app'
home:
<<: *node
container_name: 'home'
depends_on:
- 'db'
working_dir: '/home/node/app/home'
command: ['pnpm', 'run', 'dev', '--host']
ports:
- '5173:5173'
volumes:
db_data: