forked from AlexGaspar/docker-fbctf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.53 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
version: '3.4'
services:
mysql:
deploy:
restart_policy:
condition: "on-failure"
image: mysql:5.5
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_SECRET}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_SECRET}
network_mode: "service:fbctf"
volumes:
- dbdata:/var/lib/mysql
networks:
database:
aliases:
- mysql
db_archive:
deploy:
restart_policy:
condition: "on-failure"
image: blacklabelops/volumize:latest
volumes:
- dbdata:/var/lib/mysql:ro
- backupdata:/backup
environment:
VOLUMERIZE_SOURCE=/var/lib/mysql
VOLUMEIZE_TARGET=file:///backup
VOLUMEIZE_JOBBER_TIME="@weekly"
memcached:
restart: always
image: memcached:latest
network_mode: "service:fbctf"
fbctf:
deploy:
restart_policy:
condition: "on-failure"
image: alexgaspar/fbctf:latest
network_mode: "bridge"
links:
- memcached:memcached
- mysql:mysql
environment:
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- MYSQL_ROOT_PASSWORD=${DB_ROOT_SECRET}
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_SECRET}
- MEMCACHED_PORT=11211
- SSL_SELF_SIGNED=true
- VIRTUAL_HOST=ctf.dallasmakerspace.org
- VIRTUAL_PORT=80
networks:
- database
- bridge
networks:
database:
bridge:
external:
name: bridge
volumes:
dbdata: {}
backupdata: {}