Initial commit;
This commit is contained in:
59
docker-compose.yaml
Normal file
59
docker-compose.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
version: "3.9"
|
||||
|
||||
networks:
|
||||
overlay:
|
||||
|
||||
volumes:
|
||||
pgadmin_data:
|
||||
|
||||
services:
|
||||
steam_parser:
|
||||
image: dm1roshnikov/steam-parser:latest
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ./config/config.prod.yaml:/app/config/config.yaml:ro
|
||||
networks:
|
||||
- overlay
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
container_name: steam_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${DATABASE_USER}
|
||||
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
|
||||
- POSTGRES_DB=${DATABASE_NAME}
|
||||
ports:
|
||||
- ${DATABASE_PORT}:5432
|
||||
# volumes:
|
||||
# - ./volumes/steam/db-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
networks:
|
||||
- overlay
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
container_name: steam_pgadmin
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
|
||||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
volumes:
|
||||
- pgadmin_data:/var/lib/pgadmin
|
||||
ports:
|
||||
- ${PGADMIN_PORT}:80
|
||||
networks:
|
||||
- overlay
|
||||
Reference in New Issue
Block a user