-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 1.02 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
version: '3'
services:
payload:
image: node:20-alpine
ports:
- '3000:3000'
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm dev"
depends_on:
- postgres
env_file:
- .env
# From another container, DATABASE_URL uses 'postgres' as the hostname, ie.
# postgres://postgres:postgres@postgres:5432/chaibuilder. From your own machine
# it is 'localhost', which is what .env.example uses.
#
# The postgis image rather than plain postgres: Site Config stores a map
# location as a geographic point, which needs the PostGIS extension.
postgres:
restart: always
image: postgis/postgis:16-3.4
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: chaibuilder
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- '5432:5432'
volumes:
pgdata:
node_modules: