Skip to content

Commit dc902ad

Browse files
fixup compose
1 parent eadef71 commit dc902ad

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

samples/huginn/compose.dev.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
services:
22
huginn:
3+
extends:
4+
file: compose.yaml
5+
service: huginn-app
36
environment:
47
- DATABASE_ADAPTER=postgresql
58
- DATABASE_NAME=huginn
69
- DATABASE_USERNAME=huginn
710
- DATABASE_PASSWORD=huginn
8-
- DATABASE_HOST=postgres
9-
depends_on:
10-
- postgres
11-
postgres:
12-
image: postgres:14
11+
- DATABASE_HOST=db
12+
db:
13+
extends:
14+
file: compose.yaml
15+
service: db
1316
environment:
1417
POSTGRES_USER: huginn
1518
POSTGRES_PASSWORD: huginn
@@ -18,4 +21,4 @@ services:
1821
- postgres:/var/lib/postgresql/data
1922

2023
volumes:
21-
postgres:
24+
postgres:

samples/huginn/compose.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
huginn-app:
2+
huginn:
33
image: ghcr.io/huginn/huginn
44
restart: unless-stopped
55
ports:
@@ -20,17 +20,17 @@ services:
2020
- DATABASE_ADAPTER=postgresql
2121
- DATABASE_NAME=huginn
2222
- DATABASE_USERNAME=huginn
23-
- DATABASE_PASSWORD=${POSTGRES_PASSWORD}
24-
- DATABASE_HOST=postgresx
25-
postgresx:
26-
image: postgres:14
23+
- DATABASE_HOST=db
24+
- DATABASE_PASSWORD="${POSTGRES_PASSWORD}"
25+
depends_on:
26+
- db
27+
db:
28+
image: postgres:16
2729
environment:
2830
- POSTGRES_USER=huginn
29-
- POSTGRES_PASSWORD
3031
- POSTGRES_DB=huginn
32+
- POSTGRES_PASSWORD
3133
ports:
3234
- mode: host
3335
target: 5432
3436
published: 5432
35-
networks:
36-
- public

0 commit comments

Comments
 (0)