-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
39 lines (39 loc) · 978 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
version: "3"
services:
server:
build:
context: .
dockerfile: docker/server.Dockerfile
image: asciipay/server:latest
restart: always
container_name: "ascii-pay-server"
env_file: .env
environment:
- API_HOST=0.0.0.0
- API_PORT=3000
- DATABASE_URL=postgres://ascii:ascii@postgres:5432/ascii-pay
- RUST_LOG=info,sqlx::query=warn
- DOMAIN_NAME=http://localhost:8080
depends_on:
- postgres
volumes:
- ./AsciiPayCard.pass:/opt/ascii-pay-server/AsciiPayCard.pass
- ./certificates:/opt/certificates
ports:
- "3000:3000"
networks:
- default
postgres:
image: postgres:13-alpine
container_name: "ascii-pay-postgres"
restart: always
environment:
- POSTGRES_USER=ascii
- POSTGRES_PASSWORD=ascii
- POSTGRES_DB=ascii-pay
ports:
- "5432:5432"
volumes:
- ./dist/postgres:/var/lib/postgresql/data
networks:
- default