forked from specify/web-asset-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.template.yml
executable file
·52 lines (47 loc) · 1.17 KB
/
docker-compose.template.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
version: '3.4'
services:
nginx:
image: nginx:latest
container_name: bottle-nginx
ports:
- '80:80'
- '443:443'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
#- /etc/ssl/certs:/etc/ssl/certs:ro
#- /etc/ssl/private:/etc/ssl/private:ro
depends_on:
- image-server
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "5"
restart: always
image-server:
# image: ghcr.io/garutilorenzo/bottle-be:dev
build: ./
container_name: image-server
environment:
- EXTERNAL_IP=institution.org
- PYTHONUNBUFFERED=1
- LANG=C.UTF-8
volumes:
- ./:/code
command: ['uwsgi', '--plugin', '/usr/lib/uwsgi/plugins/python312_plugin.so','--ini', 'uwsgi.ini']
restart: always
mysql-images:
restart: unless-stopped
image: mysql:8
container_name: mysql-images
command: "--default-authentication-plugin=mysql_native_password"
volumes:
- ./data:/var/lib/mysql:delegated
environment:
MYSQL_ROOT_PASSWORD: 'redacted'
MYSQL_DATABASE: 'images'
TZ: America/Los_Angeles
ports:
- "3306:3306"
expose:
- 3306