forked from adrianluna/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (98 loc) · 2.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
98 lines (98 loc) · 2.66 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
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
services:
nginx:
build:
context: .
dockerfile: nginx.dockerfile
ports:
- 80:80
volumes:
- /Users/adrianluna/Code/src:/var/www/html
depends_on:
- mysql
- php
mysql:
image: mariadb:10.5
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: secret
volumes:
- ./mysql:/var/lib/mysql
- ./databases-backup.sql:/docker-entrypoint-initdb.d/databases-backup.sql
php:
build:
context: .
dockerfile: php.dockerfile
volumes:
- /Users/adrianluna/Code/src:/var/www/html
- /Users/adrianluna/Code/docker/certs:/etc/certs ## uncomment if running on tls
depends_on:
- valkey
# keydb:
# build:
# context: .
# dockerfile: keydb.dockerfile
# ports:
# - 6379:6379
# redis:
# build:
# context: .
# dockerfile: redis.dockerfile
# # command: [
# # '--tls-port 6379',
# # '--port 0',
# # "--tls-cert-file /etc/certs/redis.crt",
# # "--tls-key-file /etc/certs/redis.key",
# # "--tls-ca-cert-file /etc/certs/ca.crt"
# # ]
# ports:
# - 6379:6379
# - 6378:6378
# # volumes:
# # - /Users/adrianluna/Code/docker/certs:/etc/certs
valkey:
build:
context: .
dockerfile: valkey.dockerfile
# command: --port 32769 ## uncomment ro run on high ports
# command: [
# "--tls-port 60379",
# "--port 0",
# "--tls-cert-file /etc/certs/server.crt",
# "--tls-key-file /etc/certs/server.key",
# "--tls-ca-cert-file /etc/certs/ca.crt"
# ] ## uncomment if running on tls
ports:
# - 32769:6379 ## uncomment ro run on high ports
- 6379:6379
- 6378:6378
# volumes: ## uncomment if running on sockets also check valkey.dockerfile
# - redis-socket:/run/redis-socket ## uncomment if running on sockets
# volumes: ## uncomment if running on tls
# - /Users/adrianluna/Code/docker/certs:/etc/certs ## uncomment if running on tls
composer:
build:
context: .
dockerfile: composer.dockerfile
volumes:
- /Users/adrianluna/Code/src:/var/www/html
working_dir: /var/www/html
npm:
image: node:current-alpine
volumes:
- /Users/adrianluna/Code/src:/var/www/html
entrypoint: ["npm"]
working_dir: /var/www/html
artisan:
build:
context: .
dockerfile: php.dockerfile
volumes:
- /Users/adrianluna/Code/src:/var/www/html
working_dir: /var/www/html
depends_on:
- mysql
entrypoint: ["php"]
# volumes: ## uncomment if running on sockets
# redis-socket: ## uncomment if running on sockets
# name: redis_socket ## uncomment if running on sockets