Skip to content

Commit 23ac04a

Browse files
committed
🧑‍💻 Add Docker Compose config
1 parent c9acc78 commit 23ac04a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

compose.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
services:
2+
postgres:
3+
image: postgres:12
4+
environment:
5+
# This is the user your bot will login to the database with
6+
POSTGRES_USER: ${PG_USER}
7+
# This is the database name which will get created automagically for you.
8+
POSTGRES_DB: ${PG_DATABASE}
9+
# This is the port the database will use to communicate on.
10+
POSTGRES_PORT: '5432'
11+
# This is the password your bot will use to authenticate with the database
12+
POSTGRES_PASSWORD: ${PG_PASSWORD}
13+
# ports to expose to your machine (and others)
14+
ports:
15+
- "5432:5432"
16+
# This allows the database to keep its data between being destroyed and re-created
17+
volumes:
18+
- postgres_data:/var/lib/postgresql/data
19+
redis:
20+
image: bitnami/redis:6.2.14
21+
container_name: manage-invite-redis
22+
environment:
23+
- REDIS_PASSWORD=${REDIS_PASSWORD}
24+
ports:
25+
- "6379:6379"
26+
deploy:
27+
replicas: 1
28+
29+
volumes:
30+
postgres_data:

0 commit comments

Comments
 (0)