-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
85 lines (84 loc) · 1.65 KB
/
docker-compose.dev.yml
File metadata and controls
85 lines (84 loc) · 1.65 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
services:
web:
container_name: sendy_web
build:
context: ./
dockerfile: web.dockerfile
volumes:
- ./:/var/www
ports:
- "8083:80"
links:
- app
networks:
- default
app:
container_name: sendy_app
build:
context: ./
dockerfile: app-dev.dockerfile
args:
- USER=${USER}
- UID=${UID}
volumes:
- ./:/var/www
- ./custom.d:/usr/local/etc/php/custom.d
environment:
- "PHP_INI_SCAN_DIR=/usr/local/etc/php/custom.d:/usr/local/etc/php/conf.d"
- "REDIS_HOST=redis"
links:
- database
- redis
depends_on:
- database
networks:
- default
nodejs:
image: node:23-alpine
container_name: sendy_nodejs
volumes:
- ./:/var/www/
working_dir: /var/www
networks:
- default
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
database:
image: mysql:8.4.5
container_name: sendy_db
environment:
- "MYSQL_ROOT_PASSWORD=${DB_PASSWORD}"
- "MYSQL_DATABASE=${DB_DATABASE}"
ports:
- "33064:3306"
networks:
- default
phpmyadmin:
image: "phpmyadmin/phpmyadmin"
container_name: sendy_phpmyadmin
links:
- database
ports:
- "8084:80"
environment:
- "PMA_HOST=${DB_HOST}"
- "PMA_USER=${DB_USERNAME}"
- "PMA_PASSWORD=${DB_PASSWORD}"
networks:
- default
redis:
container_name: sendy_redis
image: redis:5.0.5
ports:
- "6380:6379"
networks:
- default
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16