-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.db.yml
More file actions
36 lines (32 loc) · 917 Bytes
/
docker-compose.db.yml
File metadata and controls
36 lines (32 loc) · 917 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
# Simple example of an !3 api deployment
# with a postgres database using docker compose
# Can be run with `docker compose -f docker-compose.db.yml up`
# Or with `docker compose -f docker-compose.db.yml -f docker-compose.override.yml up`
# We still recommend checking out the more advanced examples in the main repository
# https://github.com/not-three/main#deployment
x-restart: &restart
restart: 'unless-stopped'
services:
db:
image: postgres:14.5
<<: *restart
environment:
POSTGRES_PASSWORD: db
POSTGRES_USER: db
POSTGRES_DB: db
volumes:
- pg:/var/lib/postgresql/data
app:
image: ghcr.io/not-three/api:nightly
<<: *restart
ports: [ 4000:4000 ]
depends_on: [ db ]
environment:
CORS_ENABLED: true
DATABASE_MODE: pg
DATABASE_HOST: db
DATABASE_USERNAME: db
DATABASE_PASSWORD: db
DATABASE_NAME: db
volumes:
pg: