version: "3" services: redis: image: redis db: image: postgres:10-alpine volumes: - ./pg_data:/var/lib/postgresql/data environment: POSTGRES_USER: root POSTGRES_PASSWORD: root POSTGRES_DB: ohmyform restart: unless-stopped ui: image: ohmyform/ui environment: ENDPOINT: http://localhost:8090/graphql SERVER_ENDPOINT: http://api:5000/graphql PORT: 5000 ports: - "8080:5000" restart: unless-stopped api: image: ohmyform/api environment: CREATE_ADMIN: "true" ADMIN_EMAIL: admin@local.host ADMIN_USERNAME: admin ADMIN_PASSWORD: admin DATABASE_DRIVER: postgres DATABASE_URL: postgresql://root:root@db:5432/ohmyform MAILER_URI: smtp://local.host REDIS_URL: redis://redis PORT: 5000 links: - db - redis ports: - "8090:5000" depends_on: - db - redis restart: unless-stopped