File: docker-compose.yml

package info (click to toggle)
podman-compose 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,004 kB
  • sloc: python: 10,946; sh: 107; javascript: 48; makefile: 13
file content (48 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (3)
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
version: '3'
volumes:
  redis:
services:
  redis:
    read_only: true
    image: docker.io/redis:alpine
    command: ["redis-server", "--appendonly", "yes", "--notify-keyspace-events", "Ex"]
    volumes:
    - redis:/data
    tmpfs:
    - /tmp
    - /var/run
    - /run
  init:
    read_only: true
    #userns_mode: keep-id
    user: ${UID:-1000}
    build:
      context: ./containers/${NODE_IMG:-node16-runtime}
    image: ${NODE_IMG:-node16-runtime}
    env_file:
    - local.env
    volumes:
    - .:/app/code
    command: ["/bin/sh", "-c", "mkdir -p ~/; [ -d ./node_modules ] && echo '** node_modules exists' || npm install"]
    tmpfs:
    - /tmp
    - /run
  task:
    extends:
        service: init
    command: ["npm", "run", "cli", "--", "task"]
    links:
    - redis
    depends_on:
    - redis
  web:
    extends:
        service: init
    command: ["npm", "run", "cli", "--", "web"]
    ports:
    - ${WEB_LISTEN_PORT:-3000}:3000
    depends_on:
    - redis
    links:
    - mongo