-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-traefik.yml
50 lines (44 loc) · 1.02 KB
/
docker-compose-traefik.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
version: '2'
services:
nginx-php-fpm:
restart: always
image: muensmedia/gsales:latest
volumes:
- ./DATA:/var/www/gsales/DATA
links:
- mariadb
networks:
- traefik
- internal
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
SMTP_HOST: $SMTP_HOST
SMTP_PORT: $SMTP_PORT
SMTP_SECURITY: $SMTP_SECURITY
SMTP_USERNAME: $SMTP_USERNAME
SMTP_PASSWORD: $SMTP_PASSWORD
PUID: $PUID
PGID: $PGID
labels:
- "traefik.http.routers.gsales2_nginx.rule=Host(`${PROJECT_BASE_URL}`)"
mariadb:
restart: always
image: mariadb:latest
volumes:
- mariadb-vol-1:/var/lib/mysql/
networks:
- internal
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
volumes:
mariadb-vol-1:
networks:
traefik:
external: true
internal:
external: false