12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- services:
- web:
- image: pyapi
- hostname: pg-web
- restart: unless-stopped
- build:
- context: .
- dockerfile: rest/Dockerfile
- environment:
- HOST: pg-db
- USER: pgdb
- PASSWORD: ${PGDB_PASSWORD}
- ports:
- - 192.168.0.20:11888:11888
- expose:
- - 11888
- networks:
- - priv
- db:
- hostname: pg-db
- restart: unless-stopped
- build:
- context: .
- dockerfile: Dockerfile
- environment:
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
- TZ: Pacific/Auckland
- PGTZ: Pacific/Auckland
- expose:
- - 5432
- shm_size: 128mb
- volumes:
- - ./data:/var/lib/postgresql/data
- networks:
- - priv
- networks:
- priv:
- enable_ipv6: true
- ipam:
- config:
- - subnet: fd00:0002::/64
|