-
Notifications
You must be signed in to change notification settings - Fork 9
/
example-docker-compose.yml
40 lines (37 loc) · 1.37 KB
/
example-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
# dev environment docker compose style
version: "3.9"
# info: ports and volumes use host:container format
# useful commands (Note: The new docker compose versions now use `docker compose` instead of `docker-compose` as command)
# start: docker-compose up -d
# stop: docker-compose down
# logs: docker-compose logs -f --tail 200
services:
melijn-redis:
image: redis:6.2.6
container_name: "melijn-redis"
restart: always
ports:
- 6379:6379
command: redis-server --requirepass replacethiswithasecurepassword # Replace the replacethiswithasecurepassword with a secure password
melijn-postgres:
image: postgres:13.5
container_name: "melijn-postgres"
restart: always
ports:
- 5432:5432
volumes:
# Uncomment the one for your system if you want persistent storage. Change the paths on the left of the : to point to an existing directory
# - /data/melijn-postgres:/var/lib/postgresql/data # unix
# - /c/Data/melijn-postgresql:/var/lib/postgresql/data # windows (also google how to enable /c/ sharing in docker desktop)
env_file:
- postgres.env
# For self hosting the bot inside docker uncomment the service below:
# melijn:
# image: ghcr.io/melijn/melijn-bot:latest-no-cache
# container_name: "melijn"
# restart: always
# depends_on:
# - melijn-postgres
# - melijn-redis
# env_file:
# - .env