summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: bb59b438426c395497bcfe4fb3796424cd29b762 (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
# Build and run bsu-fantom with database in container
#
# If you are getting "port already in use" error,
# try changing exposed ports, e.g 27017:27017 -> 27018:27017

version: '3'
services:
  app:
    container_name: bsu-fantom
    restart: always
    init: true
    build: .
    environment:
      - MONGODB_URI=mongodb://db:27017/bsu-fantom
    env_file:
      - .env
    ports:
      - '3030:3030'
    links:
      - db
  db:
    container_name: bsu-fantom-db
    image: mongo
    ports:
      - '27018:27017'