new testarena
This commit is contained in:
42
asf-cloud-server/testarena_1/docker-compose.yml
Normal file
42
asf-cloud-server/testarena_1/docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
container_name: testarena_db
|
||||
environment:
|
||||
POSTGRES_DB: testarena
|
||||
POSTGRES_USER: testarena_user
|
||||
POSTGRES_PASSWORD: testarena_pass_change_me
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- app-network
|
||||
restart: unless-stopped
|
||||
|
||||
web:
|
||||
build: .
|
||||
container_name: testarena_web
|
||||
environment:
|
||||
DATABASE_URL: postgresql://testarena_user:testarena_pass_change_me@db:5432/testarena
|
||||
SECRET_KEY: change_this_secret_key_in_production
|
||||
FLASK_ENV: production
|
||||
volumes:
|
||||
- ./app:/app
|
||||
- test_results:/app/test_results
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- app-network
|
||||
- caddy_network
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
test_results:
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
driver: bridge
|
||||
caddy_network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user