-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 925 Bytes
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
version: "3"
services:
alpine-sourcerercc:
build:
dockerfile: Dockerfile
context: .
volumes:
# uses the '.' if not given, so there is no hardcoding necessary
- ${LINK_FROM:-.}/:/home/sourcerercc-user/data:rw
environment:
# has to be given, is the folder to source from
CC_ARG: $SOURCERER_CC_INPUT
# if non is given, we use the linked container
MYSQL_HOST: ${MYSQL_HOST:-mysql-db-sourcerercc}
# if none is given, it will be generated automatically
PROJECTS_LIST: ${PROJECTS_LIST:-}
links:
- mysql-db-sourcerercc
depends_on:
- mysql-db-sourcerercc
mysql-db-sourcerercc:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'oopslaDB'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'p'
MYSQL_ROOT_PASSWORD: 'p'
ports:
- 3306:3306
expose:
- 3306
command:
- "--max-allowed-packet=68157440"