-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (60 loc) · 1.53 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
version: '3'
services:
### Workspace Utilities Container #####
workspace:
build:
args:
- NODE_VERSION=${WORKSPACE_NODE_VERSION}
- NVM_VERSION=${WORKSPACE_NVM_VERSION}
- PHPUNIT_VERSION=${WORKSPACE_PHPUNIT_VERSION}
- VERSION=${WORKSPACE_PHP_VERSION}
# - PUID=${WORKSPACE_PUID}
# - PGID=${WORKSPACE_PGID}
context: ./workspace
container_name: workspace
networks:
- backend
- frontend
tty: true
volumes:
- ${APPLICATION}:/var/www
### Database ##########################
mysql:
container_name: mysql-${MYSQL_VERSION}
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MYSQL_USER}
image: laupifrpar/mysql:${MYSQL_VERSION}
networks:
- backend
ports:
- "${MYSQL_PORT}:3306"
volumes:
- ${DATA_SAVE_PATH}/mysql-${MYSQL_VERSION}:/var/lib/mysql
redis:
container_name: "redis-${REDIS_VERSION}"
image: redis:${REDIS_VERSION}
networks:
- backend
ports:
- "${REDIS_PORT}:6379"
volumes:
- ${DATA_SAVE_PATH}/redis-${REDIS_VERSION}:/data
### Server Mail #######################
mailhog:
container_name: "mailhog"
image: mailhog/mailhog
networks:
- backend
- frontend
ports:
- "${MAILHOG_PORT_SMTP}:1025"
- "${MAILHOG_PORT_WEB}:8025"
networks:
backend:
frontend:
### Volumes Setup #####################
volumes:
mysql: