-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 925 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 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
35
36
37
38
39
40
41
42
version: '3.8'
services:
db:
image: postgres:14
environment: &common-environment
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-coding-challenge}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME:-db}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
volumes:
- ./_postgres-data:/var/lib/postgresql/data
command: -p 5432
ports:
- "5434:5432"
runnerenv:
image: ghcr.io/toggle-corp/code-runner:master
tty: true
mem_limit: 50m
mem_reservation: 20m
volumes:
- codes:/tmp:z
- ./keys:/keys
go_server:
image: ghcr.io/toggle-corp/coding-challenges:master
env_file: ./.env
ports:
- "8080:8080"
- "443:443"
depends_on:
- db
- runnerenv
volumes:
- codes:/tmp:z
- ./keys:/root/.ssh:z
- ./certs:/certs:z
volumes:
codes: