docker-compose.yml 1.07 KB
Newer Older
Nicolas Widart's avatar
Nicolas Widart committed
1 2 3 4 5 6 7
version: '2.1'
services:
  app:
    build:
      context: ./docker/app
    image: asgardcms/app:latest
    ports:
8
      - 80:80
9
      - 443:443
Nicolas Widart's avatar
Nicolas Widart committed
10 11 12
    volumes:
      - .:/var/www/html:cached
    networks:
13
      - asgard_net
Nicolas Widart's avatar
Nicolas Widart committed
14 15 16 17 18 19 20
  redis:
    build:
      context: ./docker/redis
    image: asgardcms/redis:latest
    volumes:
      - redisdata:/data
    networks:
21
      - asgard_net
Nicolas Widart's avatar
Nicolas Widart committed
22 23 24 25 26 27

  mysql:
    build:
      context: ./docker/mysql
    image: asgardcms/mysql:latest
    ports:
28
      - 3306:3306
Nicolas Widart's avatar
Nicolas Widart committed
29 30 31 32 33 34 35 36
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: asgardcms
      MYSQL_USER: homestead
      MYSQL_PASSWORD: secret
    volumes:
      - mysqldata:/var/lib/mysql
    networks:
37
      - asgard_net
Nicolas Widart's avatar
Nicolas Widart committed
38 39 40 41 42 43 44 45

  node:
    build:
      context: ./docker/node
    image: asgardcms/node:latest
    volumes:
      - .:/var/www/html

46 47 48 49 50 51 52
  blackfire:
    image: blackfire/blackfire
    environment:
      BLACKFIRE_SERVER_ID:
      BLACKFIRE_SERVER_TOKEN:
    networks:
    - asgard_net
Nicolas Widart's avatar
Nicolas Widart committed
53 54 55 56 57 58 59 60

volumes:
  redisdata:
    driver: local
  mysqldata:
    driver: local

networks:
61
  asgard_net:
Nicolas Widart's avatar
Nicolas Widart committed
62
    driver: bridge