-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
53 lines (50 loc) · 1.33 KB
/
compose.dev.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
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
db:
image: postgres:15-alpine
container_name: db
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=${DB_USERNAME?err}
- POSTGRES_PASSWORD=${DB_PASSWORD?err}
- POSTGRES_DB=${DB_NAME?err}
volumes:
- ~/volumes/synopsisbot/db:/var/lib/postgresql/data
cache:
image: redis:7-alpine
container_name: cache
restart: unless-stopped
command: /bin/sh -c "redis-server --requirepass ${REDIS_PASSWORD?err}"
ports:
- 6379:6379
volumes:
- ~/volumes/synopsisbot/redis:/data
website:
# image: ghcr.io/mastondzn/synopsisbot-website:latest
container_name: website
build:
context: .
dockerfile: website/Dockerfile
env_file:
- .env
depends_on:
- db
- cache
restart: unless-stopped
ports:
- 3001:3001
bot:
# image: ghcr.io/mastondzn/synopsisbot:latest
container_name: bot
build:
context: .
dockerfile: bot/Dockerfile
ports:
- 3002:3002
env_file:
- .env
depends_on:
- db
- cache
restart: unless-stopped