This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (60 loc) · 1.79 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
version: "3.4"
networks:
net:
driver: overlay
attachable: true
proxynetwork:
external: true
volumes:
mariadb_data:
services:
assets:
image: koromerzhin/vuejs:4.2.2
command: http-server -a 0.0.0.0 -p 80 /dist
volumes:
- ${PWD}/apps/files:/dist
networks:
- proxynetwork
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.assetslabstag.rule=Host(`assets.labstag.lxc`)"
- "traefik.http.routers.assetslabstag.entrypoints=web"
- "traefik.http.services.assetslabstag.loadbalancer.server.port=80"
mariadb:
image: mariadb:10.5.1
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: core
MYSQL_USER: labstag
MYSQL_PASSWORD: password
TZ: Europe/Paris
networks:
- net
volumes:
- mariadb_data:/var/lib/mysql
apache:
image: httpd
depends_on:
- phpfpm
volumes:
- ${PWD}/apps:/usr/local/apache2/htdocs/
- ${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf
networks:
- net
- proxynetwork
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.apilabstag.rule=Host(`api.labstag.lxc`)"
- "traefik.http.routers.apilabstag.entrypoints=web"
- "traefik.http.services.apilabstag.loadbalancer.server.port=80"
phpfpm:
image: koromerzhin/phpfpm:7.4
depends_on:
- mariadb
volumes:
- ${PWD}/apps:/usr/local/apache2/htdocs
- ${PWD}/httpd.conf:/usr/local/apache2/conf/httpd.conf
networks:
- net