forked from DouweM/pixbyt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.44 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
x-local-image:
&local-image
image: pixbyt:dev
build:
context: .
args:
DOCKER_BUILDKIT: 1
x-remote-image:
&remote-image
image: ghcr.io/nateraw/pixbyt:main # TODO: replace with your own image
services:
pixbyt:
# <<: *local-image
<<: *remote-image # TODO: use this instead of the line above to use a remote image
platform: linux/amd64
container_name: pixbyt
environment:
MELTANO_DATABASE_URI: postgresql://postgres:postgres@localhost:5433/meltano
AIRFLOW_DATABASE_SQL_ALCHEMY_CONN: postgresql://postgres:postgres@localhost:5434/airflow
env_file: .env
volumes:
- ./logs:/project/logs # TODO: rotate logs
- ./output:/project/output
network_mode: host
depends_on:
- meltano-db
- airflow-db
restart: unless-stopped
meltano-db:
image: postgres:14
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: meltano
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- meltano_postgresql_data:/var/lib/postgresql/data
ports:
- 5433:5432
restart: unless-stopped
airflow-db:
image: postgres:14
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: airflow
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- airflow_postgresql_data:/var/lib/postgresql/data
ports:
- 5434:5432
restart: unless-stopped
volumes:
meltano_postgresql_data:
driver: local
airflow_postgresql_data:
driver: local