-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 940 Bytes
/
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.7'
services:
apache:
image: httpd
ports:
- "81:80"
nginx:
image: nginx
ports:
- "82:80"
web:
image: docker.io/geegog/docker-phoenix
environment:
- MIX_ENV=dev
- PORT=4000
- DATABASE_URL=ecto://postgres:postgres@postgres/todo_backend_dev
volumes:
- .:/app
ports:
- "4000:4000"
depends_on:
- postgres
networks:
- my-network
test:
image: docker.io/geegog/docker-phoenix
command: mix test
environment:
- MIX_ENV=test
- DATABASE_URL=ecto://postgres:postgres@postgres/todo_backend_test
volumes:
- .:/app
depends_on:
- postgres
networks:
- my-network
postgres:
image: postgres:11-alpine
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
networks:
- my-network
networks:
my-network:
driver: bridge