-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (78 loc) · 1.83 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
version: "3.7"
services:
app:
build:
args:
user: centos
uid: 1000
context: ./
dockerfile: Dockerfile
image: kupi
container_name: kupi-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- kupi
live:
build:
args:
user: centos
uid: 1000
context: ./
dockerfile: Dockerfile
command: ["php", "artisan", "wc:live"]
image: kupi
container_name: kupi-live
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- kupi
db:
image: mariadb:10.5
container_name: kupi-db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
volumes:
- db-volume:/var/lib/mysql
networks:
- kupi
nginx:
image: nginx:alpine
container_name: kupi-nginx
restart: unless-stopped
labels:
- "traefik.http.routers.kupi-http.entrypoints=web"
- "traefik.http.routers.kupi-http.rule=Host(`kupi.fr`)"
- "traefik.http.routers.kupi-http.middlewares=kupi-https"
- "traefik.http.middlewares.kupi-https.redirectscheme.scheme=https"
- "traefik.http.routers.kupi.entrypoints=websecure"
- "traefik.http.routers.kupi.rule=Host(`kupi.fr`)"
- "traefik.http.routers.kupi.tls=true"
- "traefik.http.routers.kupi.tls.certresolver=le"
- "traefik.docker.network=kupi_kupi"
- "traefik.port=80"
volumes:
- ./:/var/www
- ./docker-compose/nginx:/etc/nginx/conf.d/
networks:
- kupi
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- kupi
volumes:
db-volume:
networks:
kupi:
driver: bridge