-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
50 lines (44 loc) · 1009 Bytes
/
docker-compose-prod.yml
File metadata and controls
50 lines (44 loc) · 1009 Bytes
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
version: '3.8'
networks:
plugn-network:
driver: bridge
services:
app:
build:
context: .
dockerfile: ./Dockerfile-nginx-prod
container_name: plugn-backend-prod
#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-network
redis:
image: redis:6.2.3
ports:
#- "7777:7777"
- "6379:6379"
networks:
- plugn-network
# command:
# - redis-server --port 7777
volumes:
- redis-data:/data
volumes:
redis-data: