v0.0.3
This commit is contained in:
commit
719bebc7c1
@ -36,7 +36,7 @@ services:
|
||||
# VPN_IPSEC_PSK: "ad71Vyad"
|
||||
# VPN_USER: "cybercode"
|
||||
# VPN_PASSWORD: "wPvyUHd8"
|
||||
# restart: always
|
||||
# restart: alwaysq
|
||||
|
||||
# nginx:
|
||||
# build: ./nginx/dev
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
services:
|
||||
web:
|
||||
container_name: liquid_web
|
||||
build: ./web
|
||||
command: >
|
||||
sh -c "python manage.py collectstatic --noinput &&
|
||||
@ -11,16 +12,14 @@ services:
|
||||
# - ./media:/app/media
|
||||
ports:
|
||||
- "8106:8106"
|
||||
|
||||
#expose:
|
||||
# - "8106"
|
||||
depends_on:
|
||||
- redis
|
||||
# - vpn
|
||||
|
||||
# network_mode: "service:vpn"
|
||||
|
||||
restart: always
|
||||
|
||||
|
||||
# vpn:
|
||||
# image: ubergarm/l2tp-ipsec-vpn-client
|
||||
# container_name: vpn
|
||||
@ -50,7 +49,6 @@ services:
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
ports:
|
||||
@ -60,9 +58,7 @@ services:
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
||||
|
||||
51
docker-compose.yaml.save
Normal file
51
docker-compose.yaml.save
Normal file
@ -0,0 +1,51 @@
|
||||
services:
|
||||
web:
|
||||
build: ./web
|
||||
command: >
|
||||
sh -c "
|
||||
python manage.py collectstatic --noinput
|
||||
daphne -b 0.0.0.0 -p 8000 app.asgi:application
|
||||
"
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./media:/app/media
|
||||
- ./static:/app/staticfiles
|
||||
|
||||
ports:
|
||||
- '8000:8000'
|
||||
expose:
|
||||
- 8000
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
restart: always
|
||||
|
||||
nginx:
|
||||
build: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./static:/app/static
|
||||
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
ports:
|
||||
- "6378:6378"
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
|
||||
interval: 1s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user