Skip to content

Instantly share code, notes, and snippets.

@neilkuan
Created August 11, 2020 03:12
Show Gist options
  • Save neilkuan/b0df5b75849265bc5d7c94eade0d0bce to your computer and use it in GitHub Desktop.
Save neilkuan/b0df5b75849265bc5d7c94eade0d0bce to your computer and use it in GitHub Desktop.
version: "3.7"
services:
nexus:
image: "sonatype/nexus3:3.19.1"
container_name: "nexus"
restart: always
ports:
- "8081:8081"
- "5000:5000"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/nexus/nexus-data:/nexus-data:z
logging:
driver: "json-file"
options:
max-size: "100k"
max-file: "4"
nginx:
image: "nginx:1.17.6-alpine"
container_name: "nginx"
restart: always
privileged: true
ports:
- "80:80"
- "443:443"
volumes:
- "./nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./nginx/ssl:/ssl:ro"
depends_on:
- nexus
logging:
driver: "json-file"
options:
max-size: "100k"
max-file: "4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment