docker-compose-apache.yml 510 Bytes
Newer Older
thomas craipeau's avatar
thomas craipeau committed
1
2
3
4
5
version: '2'
services:
  mongo:
    image: mongo:3.6
    volumes:
thomas craipeau's avatar
update    
thomas craipeau committed
6
      - ./code:/code
thomas craipeau's avatar
thomas craipeau committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
      - mongodb:/data/db
      - mongodb_config:/data/configdb
    command: mongod
    ports:
      - "5017:27017"
  front:
    build: docker-front-apache
    container_name: frontapachephp7
    ports:
      - "5080:80"
      - "5443:443"
      #- "5901:9001"
    volumes:
      - ./code:/code
      - mongodb:/data/db
      - ./code/log:/var/log/apache2
    depends_on:
      - mongo

volumes:
  mongodb:
  mongodb_config: