summaryrefslogtreecommitdiffstats
path: root/Applications/phpmyadmin/docker-compose.yml
blob: 7f2f747fcb259d80af9fa7710a1871cee4bd9617 (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
server:
  build: ./
  container_name: "application-phpmyadmin"
  mem_limit: 500m
  memswap_limit: 500m
  cpu_shares: 2
  restart: "on-failure:2"
  ports:
    - "9215:80"
    - "9216:443"
  links:
    - demo_db:db
  environment:
    CONTAINER_TYPE: "application"
    CONTAINER_SERVICE: "phpmyadmin"
    CONTAINER_INSTANCE: "application-phpmyadmin"
    SERVER_NAME: "localhost"
  volumes:
    - "/tmp/container/logs/phpmyadmin:/data/logs/apache_php"
    - "/tmp/container/phpmyadmin:/data/apache_php"
    
demo_db:
  image: startx/sv-mariadb
  container_name: "service-mariadb"
  expose:
    - "3306"
  environment:
    CONTAINER_TYPE: "service"
    CONTAINER_SERVICE: "mariadb"
    CONTAINER_INSTANCE: "service-mariadb"
    MYSQL_ROOT_PASSWORD: "secretdemerde"
    MYSQL_USER: "user-test"
    MYSQL_PASSWORD: "pwd-test"
    MYSQL_DATABASE: "db_test"