forked from BAWES-Universe/plugn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
73 lines (65 loc) · 1.52 KB
/
docker-compose-dev.yml
File metadata and controls
73 lines (65 loc) · 1.52 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
version: '3.8'
networks:
plugn-dev-network:
driver: bridge
services:
mysql:
image: mysql:8.4.3
restart: always
volumes:
- mysql-data:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
environment:
- MYSQL_ROOT_PASSWORD=plugn
- MYSQL_DATABASE=plugn
- MYSQL_USER=plugnuser
- MYSQL_PASSWORD=plugn
ports:
- "3307:3306"
networks:
- plugn-dev-network
#composer_installation:
# container_name: composer_installation
# image: composer
# volumes:
# - .:/home/ubuntu/plugn
# command: composer install
app:
build:
context: .
dockerfile: ./Dockerfile-nginx-dev
container_name: plugn-backend-dev
#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:
- "80:80" #app endpoint
volumes:
- .:/home/ubuntu/plugn
#- ./nginx/basic.conf:/etc/nginx/sites-available/basic.conf
depends_on:
- redis
- mysql
networks:
- plugn-dev-network
redis:
image: redis:6.2.3
ports:
- "6379:6379"
networks:
- plugn-dev-network
# command:
# - redis-server --port 7777
volumes:
- redis-data:/data
volumes:
redis-data:
mysql-data: