version: "3" networks: default: driver: bridge ipam: config: - subnet: 172.177.09.0/24 volumes: postgres_data: user_data: services: main: privileged: true image: "uxbox-devenv" build: context: "." container_name: "uxbox-devenv-main" stop_signal: SIGINT depends_on: - postgres - smtp - redis volumes: - "user_data:/home/uxbox/" - "${PWD}:/home/uxbox/uxbox" - ./files/nginx.conf:/etc/nginx/nginx.conf ports: - 3447:3447 - 3448:3448 - 3449:3449 - 6060:6060 - 6061:6061 - 9090:9090 environment: - APP_DATABASE_URI=postgresql://postgres/uxbox - APP_DATABASE_USERNAME=uxbox - APP_DATABASE_PASSWORD=uxbox - APP_SENDMAIL_BACKEND=console - APP_SMTP_HOST=smtp - APP_SMTP_PORT=25 smtp: container_name: "uxbox-devenv-smtp" image: mwader/postfix-relay:latest restart: always environment: - POSTFIX_myhostname=smtp.uxbox.io - OPENDKIM_DOMAINS=smtp.uxbox.io postgres: image: postgres:13 command: postgres -c config_file=/etc/postgresql.conf container_name: "uxbox-devenv-postgres" restart: always stop_signal: SIGINT environment: - POSTGRES_INITDB_ARGS=--data-checksums - POSTGRES_DB=uxbox - POSTGRES_USER=uxbox - POSTGRES_PASSWORD=uxbox volumes: - ./files/postgresql.conf:/etc/postgresql.conf - ./files/postgresql_init.sql:/docker-entrypoint-initdb.d/init.sql - postgres_data:/var/lib/postgresql/data redis: image: redis:6 hostname: "uxbox-devenv-redis" container_name: "uxbox-devenv-redis" restart: always