-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
88 lines (88 loc) · 2.22 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3"
services:
registry:
container_name: circuit_registry
image: registry:2
ports:
- "${DOCKER_COMPOSE_REGISTRY_PORT}:5000"
networks:
- codeamp
redis:
container_name: circuit_redis
image: redis
ports:
- "${DOCKER_COMPOSE_REDIS_PORT}:6379"
networks:
- codeamp
postgres:
container_name: circuit_postgres
image: postgres:9.6.16
ports:
- "${DOCKER_COMPOSE_POSTGRES_PORT}:5432"
volumes:
- ./bootstrap/postgres:/docker-entrypoint-initdb.d
- ./bootstrap/postgres/data:/var/lib/postgresql/data
networks:
- codeamp
mysql:
container_name: circuit_mysql
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'db'
# So you don't have to use root, but you can if you like
MYSQL_USER: 'user'
# You can use whatever password you like
MYSQL_PASSWORD: 'password'
# Password for root access
MYSQL_ROOT_PASSWORD: 'password'
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
expose:
# Opens port 3306 on the container
- '3306'
networks:
- codeamp
circuit:
image: circuit
command: sh -c "/usr/local/bin/dex serve configs/dex.yml & reflex -c reflex.conf"
build:
context: .
dockerfile: Dockerfile
environment:
DOCKER_COMPOSE_POSTGRES_PORT: ${DOCKER_COMPOSE_POSTGRES_PORT}
CODEAMP_LOG_FORMAT: "standard"
ports:
- "${DOCKER_COMPOSE_CIRCUIT_PORT}:3011"
- "${DOCKER_COMPOSE_DEX_PORT}:5556"
volumes:
- .:/go/src/github.com/codeamp/circuit
- /var/run/docker.sock:/var/run/docker.sock
- ./:/etc/dex
depends_on:
- postgres
- redis
networks:
- codeamp
kong:
command: /bin/sh -c "kong migrations bootstrap -v && kong start"
restart: on-failure
image: kong
ports:
- 8001:8001
environment:
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_USER: kong
KONG_PG_DATABASE: kong
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stderr
depends_on:
- postgres
networks:
- codeamp
networks:
codeamp:
driver: bridge