-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
98 lines (89 loc) · 2.21 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
version: '3'
services:
php:
image: serversideup/php:8.0-fpm-nginx
volumes:
- .:/var/www/html
ports:
- "80:80"
- "443:443"
networks:
- web-public
####################################
# Local development config
####################################
labels:
- "traefik.enable=true"
- "traefik.http.routers.session-tome.rule=Host(`${APP_URL}`)"
- "traefik.http.routers.session-tome.entrypoints=websecure"
- "traefik.http.routers.session-tome.tls=true"
- "traefik.http.services.session-tome.loadbalancer.server.port=443"
- "traefik.http.services.session-tome.loadbalancer.server.scheme=https"
# traefik:
# image: "traefik:v2.5"
# container_name: "traefik"
# command:
# #- "--log.level=DEBUG"
# - "--api.insecure=true"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--entrypoints.web.address=:80"
# ports:
# - "80:80"
# - "8080:8080"
# - "443:443"
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
mysql:
image: mysql
restart: "unless-stopped"
environment:
MYSQL_ROOT_PASSWORD: "toor"
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:3306"
networks:
- web-public
volumes:
- mysql-db:/var/lib/mysql
node:
image: node:lts
volumes:
- .:/usr/src/app
working_dir: /usr/src/app/
networks:
- web-public
# meilisearch:
# hostname: "session-tome_meilisearch"
# image: getmeili/meilisearch
# volumes:
# - ./volumes/meilisearch/data.ms:/data.ms
# networks:
# - web-public
redis:
hostname: "session-tome_redis"
image: redis:6
command: "redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}"
volumes:
- ./database/redis/data:/data
networks:
- web-public
cypress:
image: "cypress/included:8.7.0"
depends_on:
- php
environment:
- CYPRESS_baseUrl=https://php
working_dir: /e2e
volumes:
- ./:/e2e
networks:
- web-public
networks:
web-public:
driver: bridge
external: true
volumes:
mysql-db: