You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
871 B

version: "3"
services:
monsun_postgres:
image: postgres
container_name: monsun_postgres
restart: always
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
volumes:
- ./db-data:/var/lib/postgresql/data
env_file: prod.env
monsun_backend:
image: registry.berthoud.dev/monsun_backend
container_name: monsun_backend
restart: always
logging:
driver: json-file
options:
max-size: "200k"
max-file: "10"
ports:
- 30010:80
volumes:
- ./config:/var/config/
depends_on:
- monsun_postgres
environment:
POSTGRES_HOST: monsun_postgres
env_file: prod.env
devices:
- "/dev/ttyACM0:/dev/tty.client"
command: ["bash", "./wait-for-it.sh", "monsun_postgres:5432", "-t", "60", "--", "./docker-entrypoint.sh"]