forked from jintrone/FlintEatsServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
47 lines (46 loc) · 1.62 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
services:
fea:
image: flint-eats-server
build: ./
environment:
- DATABASE_URL=jdbc:postgresql://host.docker.internal:5432/eats
- DATABASE_USER=eats
- MAIL_HOST=smtp.gmail.com
- MAIL_PORT=587
- MAIL_USER=dkurin@swiftlet.technology
- DO_SPACE_KEY=DO00WXVL2TJJFZ44FPT2
- DO_SPACE_ENDPOINT=https://nyc3.digitaloceanspaces.com
- DO_SPACE_REGION=nyc3
- DO_SPACE_BUCKET=flinteats
- DO_SPACE_PREFIX=local/
secrets:
- DATABASE_PASSWORD
- MAIL_PASS
- DO_SPACE_SECRET
ports:
- 8080:8080
postgrest:
container_name: postgrest
image: postgrest/postgrest:v12.2.3
ports:
- "3000:3000"
# Available environment variables documented here:
# https://postgrest.org/en/latest/configuration.html#environment-variables
environment:
# The standard connection URI format, documented at
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
- PGRST_DB_URI=postgres://eats:o1z1k6hdq2enry6e@host.docker.internal:5432/eats
# The name of which database schema to expose to REST clients
- PGRST_DB_SCHEMA=public
# The database role to use when no client authentication is provided
- PGRST_DB_ANON_ROLE=web_anon
# Overrides the base URL used within the OpenAPI self-documentation hosted at the API root path
- PGRST_OPENAPI_SERVER_PROXY_URI=http://localhost:3000
restart: always
secrets:
DATABASE_PASSWORD:
file: ./.secrets/DATABASE_PASSWORD.txt
MAIL_PASS:
file: ./.secrets/MAIL_PASS.txt
DO_SPACE_SECRET:
file: ./.secrets/DO_SPACE_SECRET.txt