Skip to content

Commit 79c3f0e

Browse files
authored
Merge pull request #7 from 10Nates/dev
Dockerize 2
2 parents b81ca61 + a0c8506 commit 79c3f0e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ psql_tras_db/
131131

132132
# Docker specific
133133
.git/
134+
.github/
134135
.gitignore
135136
Dockerfile
136137
docker-compose.yml

docker-compose.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ services:
88
- Token=${DISCORD_TOKEN}
99
depends_on:
1010
- db
11+
deploy:
12+
restart_policy:
13+
condition: any
14+
delay: 5s
1115

1216
db:
1317
image: bitnami/postgresql:16
@@ -16,6 +20,10 @@ services:
1620
- POSTGRESQL_DATABASE=tras
1721
volumes:
1822
- ./psql_tras_db:/bitnami/postgresql
23+
deploy:
24+
restart_policy:
25+
condition: any
26+
delay: 5s
1927

2028
volumes:
21-
psql_tras_db:
29+
psql_tras_db:

0 commit comments

Comments
 (0)