-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 777 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 777 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
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
restart: always
ports:
- "80:80"
volumes:
- ./nginx_server:/etc/nginx/conf.d
depends_on:
- web
web:
build: .
container_name: elixir_micro
command: bash -c "mix ecto.create && mix ecto.migrate && mix phx.server"
volumes:
- .:/opt/application
ports:
- 4000:4000
restart: always
depends_on:
- redis
- postgres
redis:
image: redis
container_name: redis_micro
ports:
- 6379:6379
postgres:
image: postgres
container_name: postgres_micro
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: microservice_dev