-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 958 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 958 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
version: '3'
services:
server:
image: postgrest/postgrest
ports:
- "3000:3000"
links:
- db:db
environment:
PGRST_DB_URI: postgres://dbuser:password@db:5432/compup
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: anon #In production this role should not be the same as the one used for the connection
PGRST_JWT_SECRET: "reallyreallyreallyreallyverysafe"
depends_on:
- db
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: compup
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: password
flyway:
image: boxfuse/flyway
command: -url=jdbc:postgresql://db:5432/compup -user=dbuser -password=password migrate
volumes:
- ./migrations:/flyway/sql
depends_on:
- db
swagger:
image: swaggerapi/swagger-ui
ports:
- "8080:8080"
expose:
- "8080"
environment:
API_URL: http://localhost:3000/