-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (64 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
66 lines (64 loc) · 1.33 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
version: '3.4'
services:
web:
build:
context: backend
args:
PORT: 5000
target: backend_web
command: gunicorn wsgi:app -R --error-logfile=- --access-logfile=- --reload --worker-class=gevent --chdir /home/pfamserver/stage --bind=0.0.0.0:5000
restart: always
networks:
- intranet
links:
- db:db
volumes:
- ./backend:/home/pfamserver/stage
environment:
- PROJECT_NAME
scale: 4
env_file:
- backend/.env
user: ${CURRENT_UID}
db:
restart: always
image: mysql:8.0.26
security_opt:
- seccomp:unconfined
command: --default-authentication-plugin=mysql_native_password
networks:
- intranet
volumes:
- ./db/mysql:/var/lib/mysql
env_file:
- db/.env
nginx:
image: nginx:1.13.5
networks:
- intranet
- traefik
links:
- web:web
volumes:
- ./backend/pfamserver/static:/var/www/static
- ./nginx/conf.d:/etc/nginx/conf.d
redis-cache:
image: "redis:alpine"
command: redis-server
networks:
- intranet
phpmyadmin:
image: phpmyadmin
networks:
- intranet
restart: always
ports:
- 8082:80
environment:
- PMA_ARBITRARY=1
networks:
intranet:
driver: bridge
traefik:
external:
name: pfamserver_traefik_gate