Skip to content

Commit

Permalink
add docker-compose for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
decembrya committed Mar 31, 2022
1 parent a67a84f commit dfb2c52
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 21 deletions.
54 changes: 54 additions & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
version: "3.8"

services:
db-senspozitiv:
container_name: senspozitiv-db
image: postgres:14
env_file: .env
ports:
- "5453:5432"
networks:
- internal
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}

redis:
container_name: senspozitiv-redis
image: redis:alpine
networks:
- internal

sens_pozitiv:
container_name: senspozitiv-admin
image: code4romania/sens-pozitiv:staging
labels:
- com.centurylinklabs.watchtower.enable=true
- com.centurylinklabs.watchtower.scope=sens
env_file: .env
links:
- "db-senspozitiv:db-senspozitiv"
networks:
- internal
ports:
- "8072:8070"
depends_on:
- db-senspozitiv
- redis

watchtower:
image: containrrr/watchtower:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --include-restarting --label-enable --scope sens --cleanup

networks:
internal:
driver: bridge

volumes:
pgdata:
name: senspozitiv-pgdata
21 changes: 0 additions & 21 deletions workflows/deploy_to_staging.yaml

This file was deleted.

0 comments on commit dfb2c52

Please sign in to comment.