forked from hexlet-codebattle/codebattle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 758 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 758 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.3'
services:
app:
build:
context: services/app
dockerfile: Dockerfile.dev
env_file: .env
command: mix phx.server
environment:
- "USER=${USER}"
ports:
- "${CODEBATTLE_PORT}:${CODEBATTLE_PORT}"
volumes:
- "./services/app:/app:cached"
- "~/.bash_history:/root/.bash_history:cached"
- ".bashrc:/root/.bashrc:cached"
- '/var/run/docker.sock:/var/run/docker.sock:cached'
- "/var/tmp:/var/tmp:cached"
- "/tmp:/tmp:cached"
depends_on:
- db
db:
image: postgres:10
ports:
- "5432:${CODEBATTLE_DB_PORT}"
environment:
POSTGRES_USER: ${CODEBATTLE_DB_USERNAME}
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
pg_data: