This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (100 loc) · 2.03 KB
/
docker-compose.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.3'
services:
brakdagflask:
build: .
container_name: brakdagflask
networks:
- brakdag-network
ports:
- '8000:5000'
expose:
- '5000'
image: 'brakdagflask:latest'
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "10m"
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
- ${PWD}/init.sql:/docker-entrypoint-initdb.d/init.sql
- ${PWD}/mysqlcustom.cnf:/etc/mysql/conf.d/custom.cnf
restart: always
networks:
- brakdag-network
environment:
MYSQL_ROOT_PASSWORD: ${DB_BRAKDAG_PASS}
MYSQL_DATABASE: brakdag
MYSQL_USER: brakdag
MYSQL_PASSWORD: ${DB_BRAKDAG_PASS}
ports:
- '3306:3306'
expose:
- '3306'
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "10m"
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
networks:
- brakdag-network
ports:
- '8080:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${DB_BRAKDAG_PASS}
newsparse:
build:
context: .
dockerfile: newsparse/Dockerfile
ports:
- '3300:3300'
expose:
- '3300'
environment:
- PYTHONUNBUFFERED=0
networks:
- brakdag-network
container_name: newsparse
restart: always
image: 'newsparse:latest'
depends_on:
- brakdagflask
logging:
driver: "json-file"
options:
max-file: "3"
max-size: "10m"
swag:
cap_add:
- NET_ADMIN
container_name: swag
networks:
- brakdag-network
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- URL=brakdag.nl
- SUBDOMAINS=brakdagflask
- ONLY_SUBDOMAINS=true
- VALIDATION=http
image: 'ghcr.io/linuxserver/swag'
ports:
- '443:443'
- '80:80'
restart: unless-stopped
volumes:
- '${PWD}/swag:/config'
volumes:
db_data:
networks:
brakdag-network:
driver: bridge