forked from masb0ymas/expresso-sequelize
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
62 lines (58 loc) · 1.21 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
version: '3.8'
services:
app:
build:
context: .
container_name: express_app
depends_on:
- db
- redis
restart: always
ports:
- '7000:8000'
volumes:
- .:/var/www
working_dir: /var/www
networks:
- express_network
db:
image: mariadb
container_name: express_db
volumes:
- ./storage/mariadb-volume:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${PROD_DB_PASSWORD}
MYSQL_DATABASE: ${PROD_DB_DATABASE}
MYSQL_USER: ${PROD_DB_USERNAME}
MYSQL_PASSWORD: ${PROD_DB_PASSWORD}
restart: always
ports:
- '3307:3306'
networks:
- express_network
redis:
image: 'redis:alpine'
container_name: express_redis
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- '${REDIS_PORT}:6379'
volumes:
- ./storage/redis-data:/var/lib/redis
restart: always
networks:
- express_network
adminer:
image: adminer
container_name: express_adminer
restart: always
depends_on:
- db
environment:
ADMINER_DESIGN: flat
ports:
- '${ADMINER_PORT}:8080'
networks:
- express_network
networks:
express_network:
driver: bridge