-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
74 lines (66 loc) · 1.35 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
73
version: '3.4'
networks:
deathstar-network:
driver: bridge
volumes:
mysql-data:
driver: local
services:
api:
build:
context: 'api'
target: 'dev'
container_name: deathstar-api
stdin_open: true
tty: true
command: /bin/sh init.sh
stop_signal: SIGKILL
ports:
- 8000:8000
volumes:
- ./api:/var/www/html
networks:
- deathstar-network
depends_on:
- redis
- mysql
dashboard:
build:
context: 'dashboard'
target: 'dev'
container_name: deathstar-dashboard
ports:
- 3000:3000
- 5000:5000
command: /bin/sh -c "yarn && yarn dev --host 0.0.0.0"
stdin_open: true
tty: true
volumes:
- ./dashboard:/usr/src/app
networks:
- deathstar-network
redis:
image: redis:6.2-alpine
container_name: deathstar-redis
networks:
- deathstar-network
mysql:
image: mysql:8.0
container_name: deathstar-mysql
environment:
MYSQL_DATABASE: "default"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- mysql-data:/var/lib/mysql/
networks:
- deathstar-network
phpmyadmin:
image: phpmyadmin:latest
container_name: deathstar-phpmyadmin
ports:
- 8081:80
environment:
- PMA_HOST=mysql
- PMA_ARBITRARY=1
networks:
- deathstar-network