2019-12-27 16:20:39 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
frontend:
|
|
|
|
|
backend:
|
2016-03-30 15:44:44 +00:00
|
|
|
|
2019-12-27 16:20:39 +00:00
|
|
|
volumes:
|
|
|
|
|
pgdata:
|
|
|
|
|
opdata:
|
|
|
|
|
|
|
|
|
|
x-op-restart-policy: &restart_policy
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
x-op-image: &image
|
2016-03-30 15:44:44 +00:00
|
|
|
build: .
|
2019-12-27 16:20:39 +00:00
|
|
|
image: openproject/community:10
|
|
|
|
|
x-op-app: &app
|
|
|
|
|
<<: *image
|
|
|
|
|
<<: *restart_policy
|
|
|
|
|
environment:
|
|
|
|
|
- "RAILS_CACHE_STORE=memcache"
|
|
|
|
|
- "OPENPROJECT_CACHE__MEMCACHE__SERVER=cache:11211"
|
|
|
|
|
- "DATABASE_URL=postgres://postgres:p4ssw0rd@db/openproject"
|
2016-03-30 15:44:44 +00:00
|
|
|
volumes:
|
2019-12-27 16:20:39 +00:00
|
|
|
- "opdata:/var/openproject/assets"
|
|
|
|
|
depends_on:
|
2016-03-30 15:44:44 +00:00
|
|
|
- db
|
2019-12-27 16:20:39 +00:00
|
|
|
- cache
|
2016-03-30 15:44:44 +00:00
|
|
|
|
2019-12-27 16:20:39 +00:00
|
|
|
services:
|
|
|
|
|
db:
|
|
|
|
|
image: postgres:10
|
|
|
|
|
<<: *restart_policy
|
|
|
|
|
stop_grace_period: "3s"
|
|
|
|
|
volumes:
|
|
|
|
|
- "pgdata:/var/lib/postgresql/data"
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_PASSWORD=p4ssw0rd
|
|
|
|
|
- POSTGRES_DB=openproject
|
|
|
|
|
networks:
|
|
|
|
|
- backend
|
2016-03-30 15:44:44 +00:00
|
|
|
|
2019-12-27 16:20:39 +00:00
|
|
|
proxy:
|
|
|
|
|
<<: *image
|
|
|
|
|
<<: *restart_policy
|
|
|
|
|
command: "./docker/proxy"
|
|
|
|
|
ports:
|
|
|
|
|
- "8080:80"
|
|
|
|
|
environment:
|
|
|
|
|
- APP_HOST=web
|
|
|
|
|
depends_on:
|
|
|
|
|
- web
|
|
|
|
|
networks:
|
|
|
|
|
- frontend
|
|
|
|
|
|
|
|
|
|
cache:
|
|
|
|
|
image: memcached
|
|
|
|
|
<<: *restart_policy
|
|
|
|
|
networks:
|
|
|
|
|
- backend
|
|
|
|
|
|
|
|
|
|
web:
|
|
|
|
|
<<: *app
|
|
|
|
|
command: "./docker/web"
|
|
|
|
|
networks:
|
|
|
|
|
- frontend
|
|
|
|
|
- backend
|
|
|
|
|
|
|
|
|
|
worker:
|
|
|
|
|
<<: *app
|
|
|
|
|
command: "./docker/worker"
|
|
|
|
|
networks:
|
|
|
|
|
- backend
|
|
|
|
|
|
|
|
|
|
seeder:
|
|
|
|
|
<<: *app
|
|
|
|
|
command: "./docker/seeder"
|
|
|
|
|
restart: on-failure
|
|
|
|
|
networks:
|
|
|
|
|
- backend
|