This repository was archived by the owner on Jun 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
69 lines (65 loc) · 1.48 KB
/
docker-compose.yaml
File metadata and controls
69 lines (65 loc) · 1.48 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
69
version: '3.7'
services:
pn_database:
build:
context: .
dockerfile: ./backend/config/docker/database.dockerfile
restart: always
command: --default-authentication-plugin=mysql_native_password
container_name: pn_database
hostname: pn_database
environment:
MYSQL_ROOT_PASSWORD: "PyNanceV3"
MYSQL_DATABASE: "PYNANCE"
volumes:
- ./backend/config/docker/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
networks:
- pynance
pn_dashboard:
container_name: pn_dashboard
hostname: pn_dashboard
build:
context: .
dockerfile: ./backend/config/docker/dashboard.dockerfile
environment:
FLASK_ENV: production
FLASK_APP: "webserver.py:create_server()"
FLASK_RUN_HOST: 0.0.0.0
depends_on:
- pn_database
links:
- pn_database
networks:
- pynance
restart: on-failure
pn_listener:
container_name: pn_listener
build:
context: .
dockerfile: ./backend/config/docker/listener.dockerfile
depends_on:
- pn_database
- pn_dashboard
links:
- pn_database
- pn_dashboard
networks:
- pynance
restart: always
nginx:
container_name: nginx
image: nginx:stable
volumes:
- ./backend/config/docker/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- pn_dashboard
links:
- pn_dashboard
ports:
- 1337:5000
networks:
- pynance
restart:
always
networks:
pynance: