50 lines
No EOL
1.1 KiB
YAML
50 lines
No EOL
1.1 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- webroot:/var/www/html
|
|
- ./authorized_keys:/home/site-deploy/.ssh/authorized-keys:ro
|
|
- wr-deploy-temp:/tmp/deploy
|
|
|
|
nginx: # name must not be changed
|
|
image: nginx:1.27
|
|
restart: unless-stopped
|
|
networks:
|
|
- nginx
|
|
volumes:
|
|
- ./nginx:/etc/nginx:ro
|
|
- webroot:/var/www/html:ro
|
|
- ssl-certs:/etc/ssl/nginx:ro
|
|
ports: # change IPs here
|
|
- "127.0.0.1:80:80"
|
|
- "127.0.0.1:443:443"
|
|
- "127.0.0.1:443:443/udp"
|
|
- "[::1]:80:80"
|
|
- "[::1]:443:443"
|
|
- "[::1]:443:443/udp"
|
|
depends_on:
|
|
- app
|
|
|
|
sftp:
|
|
image: atmoz/sftp:alpine
|
|
volumes:
|
|
- ssh-data:/etc/ssh
|
|
- wr-deploy-temp:/home/site-deploy
|
|
- ./authorized_keys:/home/site-deploy/.ssh/keys/ssh-keys.pub:ro
|
|
ports:
|
|
- "[::1]:2222:22"
|
|
command: site-deploy:pass:1001
|
|
|
|
volumes:
|
|
webroot:
|
|
ssl-certs:
|
|
wr-deploy-temp:
|
|
ssh-data:
|
|
|
|
networks:
|
|
nginx:
|
|
external: false |