version: "3" networks: default: driver: bridge ipam: config: - subnet: 172.177.09.0/24 volumes: postgres_data: user_data: services: main: privileged: true image: "penpotapp/devenv:latest" build: context: "." container_name: "penpot-devenv-main" stop_signal: SIGINT depends_on: - postgres - redis volumes: - "user_data:/home/penpot/" - "${PWD}:/home/penpot/penpot" - ./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/penpot - APP_DATABASE_USERNAME=penpot - APP_DATABASE_PASSWORD=penpot - APP_REDIS_URI=redis://redis/0 - EXTERNAL_UID=${CURRENT_USER_ID} postgres: image: postgres:13 command: postgres -c config_file=/etc/postgresql.conf container_name: "penpot-devenv-postgres" restart: always stop_signal: SIGINT environment: - POSTGRES_INITDB_ARGS=--data-checksums - POSTGRES_DB=penpot - POSTGRES_USER=penpot - POSTGRES_PASSWORD=penpot 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: "penpot-devenv-redis" container_name: "penpot-devenv-redis" restart: always