Create docker-compose.yml
Browse files- docker-compose.yml +40 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3"
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
backend:
|
| 5 |
+
build:
|
| 6 |
+
context: .
|
| 7 |
+
dockerfile: .
|
| 8 |
+
networks:
|
| 9 |
+
- caw
|
| 10 |
+
ports:
|
| 11 |
+
- "3001:3001"
|
| 12 |
+
volumes:
|
| 13 |
+
- ./config.yaml:/app/config.yaml
|
| 14 |
+
environment:
|
| 15 |
+
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
|
| 16 |
+
database:
|
| 17 |
+
image: postgres:latest
|
| 18 |
+
networks:
|
| 19 |
+
- caw
|
| 20 |
+
environment:
|
| 21 |
+
POSTGRES_DB: postgres
|
| 22 |
+
POSTGRES_USER: postgres
|
| 23 |
+
POSTGRES_PASSWORD: postgres
|
| 24 |
+
volumes:
|
| 25 |
+
- database:/var/lib/postgresql/data
|
| 26 |
+
ports:
|
| 27 |
+
- "5432:5432"
|
| 28 |
+
cache:
|
| 29 |
+
image: redis:latest
|
| 30 |
+
networks:
|
| 31 |
+
- caw
|
| 32 |
+
ports:
|
| 33 |
+
- "6379:6379"
|
| 34 |
+
|
| 35 |
+
volumes:
|
| 36 |
+
database:
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
networks:
|
| 40 |
+
caw:
|