-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·73 lines (73 loc) · 1.75 KB
/
docker-compose.yaml
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
version: "3.8"
networks:
prod-shared:
volumes:
mysql_data:
services:
umis:
container_name: ${CONTAINER}
hostname: ${HOSTNAME} #nginx uses hostname to proxy
image: ${IMAGEURL}:${IMAGETAG}
pull_policy: always
restart: always
depends_on:
- mysql
logging:
driver: "local"
options: {}
working_dir: /app
ports:
- '8081:8081'
networks:
- prod-shared
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE_HOST: ${MYSQL_DATABASE_HOST}
mysql:
container_name: ${MYSQL_CONTAINER_NAME}
hostname: ${MYSQL_HOSTNAME}
image: mysql:8.0.32
pull_policy: always
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER} #user granted access to database on import
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- ./umis.sql:/docker-entrypoint-initdb.d/umis.sql #automagically imports any sql files in this folder
logging:
driver: "local"
options: {}
networks:
- prod-shared
# proxy:
# image: ${PROXYIMAGE}:${PROXYIMAGETAG}
# container_name: ${PROXYNAME}
# deploy:
# resources:
# limits:
# memory: ${PROXYLIMITMEM}
# reservations:
# memory: ${PROXYRESERVEMEM}
# restart: always
# volumes:
# - ${PROXYVOL1}
# - ${PROXYVOL2}
# - ${PROXYVOL3}
# - ${PROXYVOL4}
# - ${PROXYVOL5}
# - ${PROXYVOL6}
# ports:
# - ${PROXYPORTS}
# networks:
# - ${PROXYNETWORK}
# networks:
# - umis-shared
#networks:
# umis-shared:
# external: true
#volumes:
# mysql-data: