deploy compose
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
cea2b88b30
commit
7f5d7ccae4
|
@ -64,9 +64,14 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- echo $username
|
- echo $username
|
||||||
- docker login -u $username -p $password https://registry.xrg.io
|
- docker login -u $username -p $password https://registry.xrg.io
|
||||||
- docker-compose up -d
|
- docker-compose up -d -f docker/docker-compose.prod.yml
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: host_docker_sock
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: host_docker_sock
|
||||||
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
node:
|
node:
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
xrges-nginx:
|
||||||
|
image: nginx:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8086:80"
|
||||||
|
volumes:
|
||||||
|
- ../frontend/build:/var/www/frontend
|
||||||
|
- ./zz-default-nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
|
links:
|
||||||
|
- xrges-php
|
||||||
|
|
||||||
|
xrges-php:
|
||||||
|
build: .
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ../backend:/var/www/backend
|
||||||
|
|
||||||
|
xrges-redis:
|
||||||
|
image: redis:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ../home/redis:/data
|
||||||
|
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||||
|
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: xrges-network
|
Loading…
Reference in New Issue