-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (66 loc) · 1.89 KB
/
docker-compose.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3"
services:
postgres:
image: postgis/postgis:16-3.4
#command: "-c log_statement=all"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
dbmate:
build: db
environment:
DATABASE_URL: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable"
volumes:
- ./db/migrations:/db/migrations/
- ./db/schema.sql:/db/schema.sql
postgrest:
image: postgrest/postgrest:v10.1.2
environment:
PGRST_DB_URI: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres"
PGRST_JWT_SECRET: ${JWT_SECRET}
PGRST_DB_ANON_ROLE: web_anon
wizard:
image: seapop_wizard
build:
context: wizard
environment:
POSTGREST_URL: http://postgrest:3000
POSTGREST_TOKEN: ${WRITER_TOKEN}
LOGGING: DEBUG
TEST_DATA_PATH: /test_data
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable
tty: true
stdin_open: true
volumes:
- ./loggers_data:/app/loggers_data
- ./data:/data/
- ./wizard/parsers:/app/parsers
- ./test_data:/test_data
queue:
image: seapop_wizard
command: pdm run procrastinate --app=tasks.app worker
environment:
POSTGREST_URL: http://postgrest:3000
POSTGREST_TOKEN: ${WRITER_TOKEN}
LOGGING: DEBUG
TEST_DATA_PATH: /test_data
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable
volumes:
- ./data:/data/
- ./wizard/parsers:/app/parsers
pgweb:
image: sosedoff/pgweb:latest
environment:
PGWEB_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable
WAIT_FOR: postgres:5432
nginx:
build: nginx
ports:
- 8000:80
volumes:
- ./data:/data/
volumes:
pgdata: