forked from corbin-zip/bioserver
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.infra.yaml
More file actions
68 lines (63 loc) · 1.39 KB
/
Copy pathdocker-compose.infra.yaml
File metadata and controls
68 lines (63 loc) · 1.39 KB
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
services:
biogateway:
restart: unless-stopped
build:
context: .
dockerfile: docker/gateway.Dockerfile
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
depends_on:
- biomysql
networks:
- bio-network
biofpm:
restart: unless-stopped
build:
context: .
dockerfile: docker/fpm.Dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
target: ${APP_ENV:-production}
env_file:
- .env
depends_on:
- biomysql
networks:
- bio-network
biomysql:
restart: unless-stopped
image: mysql:9.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
networks:
- bio-network
env_file:
- .env
volumes:
- ./docker/vars/mysql/1_create_user.sh:/docker-entrypoint-initdb.d/1_create_user.sh
- ./docker/vars/mysql/2_init_db.sh:/docker-entrypoint-initdb.d/2_init_db.sh
- dbdata:/var/lib/mysql
biodns:
restart: unless-stopped
build:
context: .
dockerfile: docker/dns.Dockerfile
environment:
SERVER_IP: ${SERVER_IP}
ROUTER_IP: ${ROUTER_IP}
ports:
- "${DNS_PORT:-53}:53/udp"
cap_add:
- NET_ADMIN
networks:
bio-network:
driver: bridge
name: bio-network
volumes:
dbdata:
driver: local