push
This commit is contained in:
42
docker-compose.yml
Normal file
42
docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
environment:
|
||||
FLASK_ENV: production
|
||||
HOST: 0.0.0.0
|
||||
PORT: 5000
|
||||
DATABASE_URL: postgresql+psycopg://mikromon:mikromon@db:5432/mikromon
|
||||
SOCKETIO_MESSAGE_QUEUE: redis://redis:6379/0
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
SECRET_KEY: change-me
|
||||
CRED_ENC_KEY: REPLACE_WITH_FERNET_KEY
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
worker:
|
||||
build: .
|
||||
command: ["rq", "worker", "--with-scheduler", "-u", "redis://redis:6379/0"]
|
||||
environment:
|
||||
DATABASE_URL: postgresql+psycopg://mikromon:mikromon@db:5432/mikromon
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
SECRET_KEY: change-me
|
||||
CRED_ENC_KEY: REPLACE_WITH_FERNET_KEY
|
||||
DEV_INPROCESS_POLLER: "0"
|
||||
SOCKETIO_MESSAGE_QUEUE: redis://redis:6379/0
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
db:
|
||||
image: postgres:16
|
||||
environment:
|
||||
POSTGRES_USER: mikromon
|
||||
POSTGRES_PASSWORD: mikromon
|
||||
POSTGRES_DB: mikromon
|
||||
ports:
|
||||
- "5432:5432"
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
Reference in New Issue
Block a user