-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.nexus_server.yml
101 lines (93 loc) · 2.74 KB
/
docker-compose.nexus_server.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# {'Compose file format': 3.7, 'Docker Engine release': 18.06.0*} (0x0)
version: '3.7'
# Services collectively make up a distributed application. (0x1)
services:
# TODO: Investigate into 'container_name', it breaks builds.
# Serves static content and forwards requests to servers.
nginx:
#hostname: nginx
build:
context: .
dockerfile: ./applications/nginx/Dockerfile
environment:
_SERVICE_NAME: "nginx"
#container_name: nginx
ports:
- "80:80"
- "3000:3000"
tty: true
volumes:
- nexus_volume:/v
# Manages automated jobs, builds, etc.
jenkins:
#hostname: jenkins
build:
context: .
dockerfile: ./applications/jenkins/Dockerfile
environment:
_SERVICE_NAME: "jenkins"
JAVA_OPTS: "-Xmx3072m" # 3GB memory.
JENKINS_OPTS: "--logfile=/var/log/jenkins/jenkins.log"
tty: true
volumes:
- jenkins-log:/var/log/jenkins
- jenkins-data:/var/jenkins_home
# RabbitMQ broker.
rabbit_manager:
#hostname: rabbit_manager
build:
context: .
dockerfile: ./applications/rabbitmq_manager/Dockerfile
environment:
_SERVICE_NAME: "rabbit_manager"
RABBITMQ_ERLANG_COOKIE: "secret string"
RABBITMQ_NODENAME: rabbit_manager
tty: true
#container_name: rabbit_manager
volumes:
- "./applications/rabbitmq_manager/rabbitmq.config:/etc/rabbitmq/rabitmq.config"
- "./applications/rabbitmq_manager/definitions.json:/etc/rabbitmq/definitions.json"
ports:
- "5672:5672"
- "15672:15672"
- "25672:25672"
# MySQL server, no custom logic attached, just the stand-alone server.
mysql_server:
hostname: mysql_server
build:
context: .
dockerfile: ./applications/mysql_server/Dockerfile
environment:
_SERVICE_NAME: "mysql_server"
MYSQL_DATABASE: "test"
MYSQL_USER: "test"
MYSQL_PASSWORD: "test"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
PYTHONPATH: "/quasar_source"
RABBITMQ_ERLANG_COOKIE: "secret string"
RABBITMQ_NODENAME: "nexus_courier"
#image: mysql
#container_name: mysql_server
#command: mysqld --user=root --verbose
tty: true
depends_on:
- rabbit_manager
volumes:
- "./applications/rabbitmq_manager/rabbitmq.config:/etc/rabbitmq/rabitmq.config"
- "./applications/rabbitmq_manager/definitions.json:/etc/rabbitmq/definitions.json"
# - ./applications/mysql_server/dbcreation.sql:/tmp/dbcreation.sql
# - ./applications/mysql_server/import.sh:/tmp/import.sh
ports:
- "3306:3306"
networks:
default:
external:
name: nexus_network
volumes:
nexus_volume:
external: true
jenkins-log:
external: true
jenkins-data:
external: true