Skip to content

Commit 9d3a895

Browse files
committed
Add postgres accessory
1 parent 228ef62 commit 9d3a895

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

config/deploy.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,18 @@ builder:
4343
volumes:
4444
- "/opt/docker/ubixar.com/App_Data:/app/App_Data"
4545

46-
#accessories:
47-
# litestream:
48-
# roles: ["web"]
49-
# image: litestream/litestream
50-
# files: ["config/litestream.yml:/etc/litestream.yml"]
51-
# volumes: ["/opt/docker/MyApp/App_Data:/data"]
52-
# cmd: replicate
53-
# env:
54-
# secret:
55-
# - ACCESS_KEY_ID
56-
# - SECRET_ACCESS_KEY
46+
accessories:
47+
db:
48+
image: postgres
49+
host: 5.78.128.205
50+
port: "127.0.0.1:5432:5432"
51+
env:
52+
clear:
53+
- POSTGRES_DB=ubixar
54+
- POSTGRES_USER=ubixar
55+
- DB_HOST: 127.0.0.1
56+
- DB_PORT: 5432
57+
secret:
58+
- POSTGRES_PASSWORD:PASSWORD
59+
directories:
60+
- /opt/docker/ubixar.com/postgres:/var/lib/postgresql/data

0 commit comments

Comments
 (0)