-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.37 KB
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
54
55
56
57
58
59
60
61
62
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: slack_bot_postgres
environment:
POSTGRES_DB: slack_bot_db
POSTGRES_USER: slack_bot_user
POSTGRES_PASSWORD: slack_bot_password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
networks:
- slack_bot_network
restart: unless-stopped
# Backend API
# backend:
# build:
# context: ./backend
# dockerfile: Dockerfile
# container_name: slack_bot_backend
# environment:
# - DATABASE_URL=postgresql://slack_bot_user:slack_bot_password@postgres:5432/slack_bot_db
# - FLASK_ENV=production
# - FLASK_APP=app.py
# ports:
# - "5000:5000"
# depends_on:
# - postgres
# networks:
# - slack_bot_network
# restart: unless-stopped
# volumes:
# - ./backend:/app
# - /app/__pycache__
# # Frontend React App
# frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile
# container_name: slack_bot_frontend
# ports:
# - "80:80"
# depends_on:
# - backend
# networks:
# - slack_bot_network
# restart: unless-stopped
volumes:
postgres_data:
driver: local
networks:
slack_bot_network:
driver: bridge