services: nginx: image: nginx:latest container_name: nginx volumes: - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/ssl:/etc/nginx/ssl - ./nginx/html:/usr/share/nginx/html - /coursework/nginx/ssl:/coursework/nginx/ssl ports: - "80:80" - "443:443" depends_on: - gitea restart: always gitea: image: gitea/gitea:latest container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 volumes: - ./gitea-data:/data ports: - "3000:3000" - "222:22" restart: always volumes: gitea-data: