-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (84 loc) · 2.81 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.7'
services:
server:
container_name: ${DOCKER_SERVER_CONTAINER_NAME}
image: nginx:1.17.4-alpine
working_dir: /var/www/html
volumes:
- .:/var/www/html
- ./docker/server/conf.d/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- interpreter
- database
networks:
- network
ports:
- ${DOCKER_SERVER_CONTAINER_PORT}:80
restart: unless-stopped
interpreter:
container_name: ${DOCKER_INTERPRETER_CONTAINER_NAME}
image: sitkmutt/research-stock-interpreter
build:
context: './docker/interpreter'
dockerfile: 'Dockerfile'
working_dir: /var/www/html
depends_on:
- storage
volumes:
- .:/var/www/html
- ./docker/interpreter/php/php.ini:/usr/local/etc/php/conf.d/php_custom.ini
networks:
- network
restart: unless-stopped
database:
container_name: ${DOCKER_DATABASE_CONTAINER_NAME}
image: mariadb:10.4
environment:
- MYSQL_DATABASE=${DOCKER_DATABASE_DATABASE_NAME}
- MYSQL_USER=${DOCKER_DATABASE_DATABASE_USERNAME}
- MYSQL_PASSWORD=${DOCKER_DATABASE_DATABASE_PASSWORD}
- MYSQL_RANDOM_ROOT_PASSWORD=yes
networks:
- network
ports:
- ${DOCKER_DATABASE_CONTAINER_PORT}:3306
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=${DB_COLLATION}']
restart: unless-stopped
database_manager:
container_name: ${DOCKER_DBMGR_CONTAINER_NAME}
image: phpmyadmin/phpmyadmin
depends_on:
- database
environment:
- PMA_VERBOSE=SIT Material's Database
- PMA_HOST=database
- PMA_PORT=3306
volumes:
- /sessions
- ./docker/database_manager/php/php.ini:/usr/local/etc/php/conf.d/php_custom.ini
networks:
- network
ports:
- ${DOCKER_DBMGR_CONTAINER_PORT}:80
restart: unless-stopped
storage:
container_name: ${DOCKER_STORAGE_CONTAINER_NAME}
image: minio/minio:RELEASE.2019-09-26T19-42-35Z
environment:
- MINIO_ACCESS_KEY=${DOCKER_STORAGE_ACCESS_KEY}
- MINIO_SECRET_KEY=${DOCKER_STORAGE_SECRET_KEY}
entrypoint: sh
command: -c 'mkdir -p /export/${DOCKER_STORAGE_BUCKET_NAME} && /usr/bin/minio server /export'
networks:
- network
ports:
- ${DOCKER_STORAGE_CONTAINER_PORT}:9000
volumes:
- storage:/export
restart: unless-stopped
networks:
network:
name: sitkmutt_research_stock-networks-network
volumes:
storage:
name: sitkmutt_research_stock-volumes-storage