-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (41 loc) · 1.12 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
version: '3'
services:
traefik:
image: traefik:v2.4
restart: unless-stopped
command:
- --providers.docker=true
- --entrypoints.web.address=:80
- --api.dashboard=true
ports:
- "80:80"
- "8080:8080" # Optional: For Traefik dashboard
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- web
db:
image: mariadb:10
restart: unless-stopped
env_file:
- db.env # db.env contains values for MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD_FILE
volumes:
- /zata/public_html_atlas/01_dump.sql:/docker-entrypoint-initdb.d/dump.sql:ro
networks:
- web
www:
build: .
restart: unless-stopped
depends_on:
- db
volumes:
- /zata/public_html_atlas/tcr_structure_database.tar.gz:/var/www/html/web/tables/tcr_structure_database.tar.gz:ro
- ./.mysqlpw.txt:/run/secrets/atlas_db_user_passwd:ro
labels:
- "traefik.http.routers.www.rule=PathPrefix(`/`)"
- "traefik.http.services.www.loadbalancer.server.port=80"
networks:
- web
networks:
web:
external: true