server/docker-compose.yml

191 lines
3.8 KiB
YAML
Raw Normal View History

2018-05-10 19:12:51 +00:00
version: '3'
services:
mysql:
image: mariadb
networks:
- fic-net
2018-05-10 19:12:51 +00:00
volumes:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=toto
- MYSQL_DATABASE=fic
- MYSQL_USER=fic
- MYSQL_PASSWORD=fic
admin:
2018-05-10 19:12:51 +00:00
build:
context: .
dockerfile: Dockerfile-admin
image: nemunaire/fic-admin:latest
ports:
- "8081:8081"
links:
- mysql
networks:
- fic-net
2018-05-10 19:12:51 +00:00
volumes:
2023-07-24 19:23:01 +00:00
- /mnt/fic:/mnt/fic
2018-12-06 02:48:53 +00:00
- dashboard:/srv/DASHBOARD
2018-05-10 19:12:51 +00:00
- files:/srv/FILES
- generator:/srv/GENERATOR:ro
2018-05-10 19:12:51 +00:00
- pki:/srv/PKI
- settings:/srv/SETTINGS
2023-07-03 12:13:16 +00:00
- settingsdist:/srv/SETTINGSDIST
2023-07-24 19:23:01 +00:00
- submissions:/srv/submissions:ro
2023-11-05 11:40:19 +00:00
- sync:/srv/SYNC
2023-07-24 19:23:01 +00:00
- teams:/srv/TEAMS
command: -baseurl /admin/ -localimport /mnt/fic -localimportsymlink
2018-05-10 19:12:51 +00:00
depends_on:
- mysql
environment:
- MYSQL_HOST=mysql
- FICCA_PASS
2018-05-10 19:12:51 +00:00
2023-07-03 12:13:16 +00:00
evdist:
build:
context: .
dockerfile: Dockerfile-evdist
image: nemunaire/fic-evdist:latest
networks:
- fic-net
volumes:
2024-09-03 13:27:58 +00:00
- dashboard:/srv/DASHBOARD
2023-07-03 12:13:16 +00:00
- settings:/srv/SETTINGS
2023-07-09 18:43:56 +00:00
- settingsdist:/srv/SETTINGSDIST
2023-07-03 12:13:16 +00:00
checker:
2018-05-10 19:12:51 +00:00
build:
context: .
dockerfile: Dockerfile-checker
image: nemunaire/fic-checker:latest
2018-05-10 19:12:51 +00:00
links:
- mysql
networks:
- fic-net
2018-05-10 19:12:51 +00:00
volumes:
- generator:/srv/GENERATOR:ro
- teams:/srv/TEAMS:ro
2023-07-03 12:13:16 +00:00
- settingsdist:/srv/SETTINGSDIST:ro
2018-05-10 19:12:51 +00:00
- submissions:/srv/submissions
depends_on:
- mysql
- generator
environment:
- MYSQL_HOST=mysql
generator:
build:
context: .
dockerfile: Dockerfile-generator
image: nemunaire/fic-generator:latest
links:
- mysql
networks:
- fic-net
volumes:
- generator:/srv/GENERATOR
- teams:/srv/TEAMS
- settingsdist:/srv/SETTINGSDIST:ro
2018-05-10 19:12:51 +00:00
depends_on:
- mysql
environment:
- MYSQL_HOST=mysql
2018-05-10 19:12:51 +00:00
qa:
build:
context: .
dockerfile: Dockerfile-qa
image: nemunaire/fic-qa:latest
ports:
- "8083:8083"
links:
- mysql
networks:
- fic-net
volumes:
- teams:/srv/TEAMS
- settingsdist:/srv/SETTINGSDIST
command: -baseurl /qa/
depends_on:
- mysql
environment:
- MYSQL_HOST=mysql
2023-07-09 18:40:53 +00:00
receiver:
2018-05-10 19:12:51 +00:00
build:
context: .
2023-07-09 18:40:53 +00:00
dockerfile: Dockerfile-receiver
image: nemunaire/fic-receiver:latest
2023-07-09 18:43:56 +00:00
command: "-startedFile /srv/startingblock/started -bind :8080"
2018-05-10 19:12:51 +00:00
ports:
- "8080:8080"
networks:
- fic-net
2018-05-10 19:12:51 +00:00
volumes:
2018-12-06 02:48:53 +00:00
- htdocs:/srv/htdocs-frontend:ro
2018-05-10 19:12:51 +00:00
- files:/srv/FILES:ro
- teams:/srv/TEAMS:ro
2023-07-03 12:13:16 +00:00
- settingsdist:/srv/SETTINGSDIST:ro
2018-05-10 19:12:51 +00:00
- submissions:/srv/submissions
2019-07-30 17:32:07 +00:00
- startingblock:/srv/startingblock
2018-05-10 19:12:51 +00:00
dashboard:
2018-12-06 02:48:53 +00:00
build:
context: .
dockerfile: Dockerfile-dashboard
image: nemunaire/fic-dashboard:latest
command: "-baseurl /dashboard/"
2018-12-06 02:48:53 +00:00
ports:
- "8082:8082"
networks:
- fic-net
2018-12-06 02:48:53 +00:00
volumes:
- dashboard:/srv/DASHBOARD
- teams:/srv/TEAMS:ro
2023-07-03 12:13:16 +00:00
- settingsdist:/srv/SETTINGSDIST:ro
2018-12-06 02:48:53 +00:00
2018-05-10 19:12:51 +00:00
front:
build:
context: .
dockerfile: Dockerfile-nginx
image: nemunaire/fic-nginx:latest
2018-05-10 19:12:51 +00:00
ports:
- "8042:80"
networks:
- fic-net
2018-05-10 19:12:51 +00:00
volumes:
2023-07-09 18:43:56 +00:00
- ./configs/nginx/get-team/team-1.conf:/etc/nginx/fic-get-team.conf:ro
2018-12-06 02:48:53 +00:00
- /mnt/fic:/mnt/fic:ro
2018-05-10 19:12:51 +00:00
- files:/srv/FILES:ro
2023-07-03 12:13:16 +00:00
- settingsdist:/srv/SETTINGSDIST:ro
2023-11-05 11:40:19 +00:00
- sync:/srv/SYNC:ro
2018-05-10 19:12:51 +00:00
- teams:/srv/TEAMS:ro
2023-07-09 18:43:56 +00:00
- startingblock:/srv/STARTINGBLOCK:ro
2018-05-10 19:12:51 +00:00
depends_on:
- qa
2023-07-09 18:40:53 +00:00
- receiver
- dashboard
- checker
- admin
2018-05-10 19:12:51 +00:00
volumes:
mysql-data:
2018-12-06 02:48:53 +00:00
dashboard:
2018-05-10 19:12:51 +00:00
files:
htdocs:
generator:
2018-05-10 19:12:51 +00:00
pki:
settings:
2023-07-03 12:13:16 +00:00
settingsdist:
2019-07-30 17:32:07 +00:00
startingblock:
driver_opts:
type: tmpfs
device: tmpfs
2018-05-10 19:12:51 +00:00
submissions:
2023-11-05 11:40:19 +00:00
sync:
2018-05-10 19:12:51 +00:00
teams:
networks:
fic-net: