summaryrefslogtreecommitdiffstats
path: root/.devcontainer/docker-compose.yml
blob: fc6ee3ff83fa9b45638209de00a7668d14ebfec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.7'

services:

  wekandb-dev:
    image: mongo:4.2.1
    container_name: wekan-dev-db
    restart: unless-stopped
    command: mongod --oplogSize 128
    networks:
      - wekan-dev-tier
    expose:
      - 27017
    volumes:
      - wekan-dev-db:/data/db
      - wekan-dev-db-dump:/dump

  wekan-dev:
    container_name: wekan-dev-app
    restart: always
    networks:
      - wekan-dev-tier
    build:
      context: ..
      dockerfile: .devcontainer/Dockerfile
    ports:
      - 3000:3000
      - 9229:9229
    environment:
      - MONGO_URL=mongodb://wekandb-dev:27017/wekan
      - ROOT_URL=http://localhost:3000
      - WITH_API=true
      - RICHER_CARD_COMMENT_EDITOR=true
      - BROWSER_POLICY_ENABLED=true
    depends_on:
      - wekandb-dev
    volumes:
      - ..:/app:delegated
    command:
      sleep infinity

volumes:
  wekan-dev-db:
    driver: local
  wekan-dev-db-dump:
    driver: local

networks:
  wekan-dev-tier:
    driver: bridge