update: ci/cd
This commit is contained in:
67
docker-compose.yml
Normal file
67
docker-compose.yml
Normal file
@@ -0,0 +1,67 @@
|
||||
services:
|
||||
ffsaf:
|
||||
container_name: ffsaf
|
||||
hostname: ffsaf
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: src/main/docker/Dockerfile.native
|
||||
volumes:
|
||||
- ${PWD}/ffsaf.properties:/work/config/application.properties
|
||||
- ${PWD}/ffsaf_cle_prive.jks:/work/cle_prive.jks
|
||||
- ${PWD}/ffsaf-media:/work/media
|
||||
depends_on:
|
||||
ffsaf-db:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
networks:
|
||||
- intra
|
||||
- nginx
|
||||
|
||||
ffsaf-db:
|
||||
image: public.ecr.aws/docker/library/postgres:17.2
|
||||
hostname: ffsaf-db
|
||||
container_name: ffsaf-db
|
||||
user: postgres
|
||||
restart: always
|
||||
networks:
|
||||
- pgadmin
|
||||
- intra
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready" ]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
volumes:
|
||||
- ${PWD}/postgres-data:/var/lib/postgresql/data
|
||||
env_file: prod.env
|
||||
|
||||
# ftpd:
|
||||
# build:
|
||||
# context: ./pure_ftpd
|
||||
# dockerfile: Dockerfile2
|
||||
# container_name: ftpd
|
||||
# ports:
|
||||
# - "10042:21"
|
||||
# - "30000-30009:30000-30009"
|
||||
# volumes:
|
||||
# - /data/git_data:/home/data/
|
||||
# - ${PWD}/pure_ftpd/passwd:/etc/pure-ftpd/passwd
|
||||
# - ${PWD}/pure_ftpd/ssl:/etc/ssl/private/:ro
|
||||
# environment:
|
||||
# PUBLICHOST: 0.0.0.0
|
||||
# FTP_USER_NAME: test
|
||||
# FTP_USER_PASS: test
|
||||
# FTP_USER_HOME: /home/data
|
||||
# ADDED_FLAGS: --tls=1
|
||||
# restart: no
|
||||
|
||||
networks:
|
||||
intra:
|
||||
driver: bridge
|
||||
pgadmin:
|
||||
name: pgadmin
|
||||
external: true
|
||||
nginx:
|
||||
name: ${NETWORK_NAME:-gateway}
|
||||
external: true
|
||||
Reference in New Issue
Block a user