-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 797 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 797 Bytes
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
services:
ramavisa:
image: git.cappe.dev/cappe/ramavisa:latest
container_name: ramavisa
restart: always
environment:
- NODE_ENV=production
- QUIZ_JSON_URL=https://files.fuckmylife.fi/quiz.json
- DATABASE_URL=postgresql://ramavisa:visa@db:5432/ramavisa
volumes:
- ./.env:/app/.env
- ./database.db:/app/database.db
depends_on:
- db
networks:
- visabot-network
db:
image: postgres:16-alpine
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: ramavisa
POSTGRES_PASSWORD: visa
POSTGRES_DB: ramavisa
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- visabot-network
networks:
visabot-network:
driver: bridge
volumes:
postgres_data: