-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 978 Bytes
/
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
version: "3"
services:
redis:
image: redis:alpine
container_name: app-redis
networks:
- app-network
volumes:
- ./data/redis:/data
ports:
- ${REDIS_PORT}:6379
restart: unless-stopped
mariadb:
image: mariadb:10.3
container_name: app-mariadb
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- ${DB_PORT}:3306
networks:
- app-network
restart: unless-stopped
app:
build: .
container_name: app
depends_on:
- redis
- mariadb
networks:
- app-network
command: yarn dev
networks:
app-network:
driver: bridge