-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (53 loc) · 1.05 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
version: '3'
services:
web:
container_name: unique-bundle-store
image: unique-bundle-store:latest
command: sh -c "rails server -b 0.0.0.0"
ports:
- "3000:3000"
volumes:
- ./:/app
tty: true
stdin_open: true
depends_on:
- mysql
- redis
restart: always
networks:
- network
mysql:
image: mysql:8.0
container_name: unique-bundle-store-db
environment:
MYSQL_ROOT_PASSWORD: senha@123
MYSQL_USER: admin
MYSQL_PASSWORD: senha@123
ports:
- "3306:3306"
volumes:
- ./mysql-data:/var/lib/mysql
restart: always
networks:
- network
phpmyadmin:
image: phpmyadmin:5.2.1
container_name: unique-bundle-store-php-myadmin
restart: always
ports:
- 3001:80
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
networks:
- network
redis:
image: redis:6.2
container_name: unique-bundle-store-redis
restart: always
ports:
- "6379:6379"
networks:
- network
networks:
network: