-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
87 lines (79 loc) · 1.86 KB
/
docker-compose-local.yml
File metadata and controls
87 lines (79 loc) · 1.86 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.8'
networks:
plugn-network:
driver: bridge
services:
mysql:
image: mysql:8.4.3
restart: always
volumes:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=plugn
- MYSQL_DATABASE=plugn
- MYSQL_USER=plugnuser
- MYSQL_PASSWORD=plugn
#ports:
# - "3306:3306"
networks:
- plugn-network
app:
build:
context: .
dockerfile: ./Dockerfile-nginx-local
container_name: plugn-backend-local
#command:
# - /bin/sh
# - -c
# - |
# sleep 5 && \
# ./init --env=Dev-Server --overwrite=All && \
# ./yii migrate && \
# sleep 1 && \
# ln -s /etc/nginx/sites-available/basic.conf /etc/nginx/sites-enabled/ && \
# service nginx restart && \
# tail -f /dev/null # Keep container running
ports:
- "8083:8083" #backend endpoint
- "8082:8082" #store endpoint
- "8081:8081" #vendor dashboard endpoint
- "8084:8084" #crm endpoint
- "8085:8085" #partner endpoint
- "8086:8086" #remail endpoint
- "8087:8087" #shortner endpoint
volumes:
- .:/home/ubuntu/plugn
#- ./nginx/basic.conf:/etc/nginx/sites-available/basic.conf
depends_on:
- redis
- mysql
networks:
- plugn-network
redis:
image: redis:6.2.3
# ports:
# - "7777:7777"
# - "6379:6379"
networks:
- plugn-network
# command:
# - redis-server --port 7777
volumes:
- redis-data:/data
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
PMA_HOST: mysql
PMA_USER: plugnuser
PMA_PASSWORD: plugn
ports:
- "8081:80"
networks:
- plugn-network
depends_on:
- mysql
volumes:
redis-data:
mysql-data: