1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- version: '3'
- services:
- personalsite-db:
- image: postgres:alpine
- container_name: personalsite-db
- ports:
- - 5432:5432
- restart: always
- volumes:
- - personalsite_db:/var/lib/postgresql/data
- environment:
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=personalsite
- networks:
- teanet:
- ipv4_address: 172.23.0.5
- app:
- image: rusian/personalsite
- container_name: personalsite
- env_file: config.env
- ports:
- - "7012:80"
- tty: true
- restart: "always"
- depends_on:
- - personalsite-db
- volumes:
- - personalsite_app:/srv/app/static
- - personalsite_app:/srv/app/media
- networks:
- teanet:
- ipv4_address: 172.23.0.6
- volumes:
- personalsite_db:
- personalsite_app:
- networks:
- teanet:
- driver: bridge
- ipam:
- config:
- - subnet: 172.23.0.0/16
|