-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (65 loc) · 1.29 KB
/
docker-compose.yaml
File metadata and controls
70 lines (65 loc) · 1.29 KB
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
services:
app:
image: ghcr.io/locmaymo/tim:latest
# build:
# context: .
# dockerfile: Dockerfile
container_name: app
restart: unless-stopped
volumes:
- app_code:/var/www/html
- ./.env:/var/www/html/.env
env_file:
- .env
environment:
DB_HOST: mysql
REDIS_HOST: redis
depends_on:
- mysql
- redis
networks:
- tim
mysql:
image: mysql:8.0
container_name: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
- dbdata:/var/lib/mysql
- ./laravel.sql:/docker-entrypoint-initdb.d/laravel.sql
- ./my.cnf:/etc/mysql/conf.d/my.cnf
ports:
- "3306:3306"
networks:
- tim
nginx:
image: nginx:alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- app_code:/var/www/html:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- /etc/ssl:/etc/ssl
depends_on:
- app
networks:
- tim
redis:
image: redis:alpine
container_name: redis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- tim
volumes:
dbdata:
app_code:
networks:
tim:
driver: bridge