-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathexample-docker-compose.yml
32 lines (32 loc) · 1.28 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
version: "3.9"
# info: ports and volumes use host:container format
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
# - /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
melijn: # comment this service out if you just want to run the database and redis in docker-compose and run the bot in intellij
image: toxicmushroom/melijn:test # replace this image with the latest one or an image you created (check the readme for more info).
container_name: "melijn"
working_dir: /opt/melijn
network_mode: host # I recommend changing this if you know how to use ports or docker networks.
depends_on:
- melijn-postgres
- melijn-redis
env_file:
- .env
restart: always