-
-
Notifications
You must be signed in to change notification settings - Fork 267
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.07 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
version: '3'
volumes:
m2:
node_modules:
build:
deps:
cache:
services:
postgres:
image: postgres:14-alpine
container_name: asciinema_dev_postgres
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 2345:5432
nginx:
image: nginx:alpine
container_name: asciinema_dev_nginx
links:
- phoenix
ports:
- "3000:80"
volumes:
- ../docker/nginx/asciinema.conf:/etc/nginx/conf.d/default.conf:ro
- cache:/cache
phoenix:
build:
context: ..
dockerfile: Dockerfile.dev
image: asciinema/asciinema-server:local
container_name: asciinema_dev_phoenix
entrypoint: env -u MIX_ENV -u PORT
command: mix phx.server
links:
- postgres
env_file: .env.development
ports:
- 4000:4000
volumes:
- ../uploads:/app/uploads:cached
- node_modules:/app/assets/node_modules:cached
- build:/app/_build:cached
- deps:/app/deps:cached
- m2:/root/.m2:cached
- ../:/app:cached
- /tmp/asciinema-web:/tmp:cached